Fixed benchmark for new API.
This commit is contained in:
parent
a6d810af15
commit
3e005aa413
1 changed files with 2 additions and 2 deletions
|
@ -28,7 +28,7 @@ readerBench :: Pandoc
|
|||
readerBench doc (name, reader) =
|
||||
case lookup name writers of
|
||||
Just (PureStringWriter writer) ->
|
||||
let inp = writer def{ writerWrapText = True} doc
|
||||
let inp = writer def{ writerWrapText = WrapAuto} doc
|
||||
in return $ bench (name ++ " reader") $ nfIO $
|
||||
(fmap handleError <$> reader def{ readerSmart = True }) inp
|
||||
_ -> trace ("\nCould not find writer for " ++ name ++ "\n") Nothing
|
||||
|
@ -37,7 +37,7 @@ writerBench :: Pandoc
|
|||
-> (String, WriterOptions -> Pandoc -> String)
|
||||
-> Benchmark
|
||||
writerBench doc (name, writer) = bench (name ++ " writer") $ nf
|
||||
(writer def{ writerWrapText = True }) doc
|
||||
(writer def{ writerWrapText = WrapAuto }) doc
|
||||
|
||||
main :: IO ()
|
||||
main = do
|
||||
|
|
Loading…
Add table
Reference in a new issue