diff options
author | John MacFarlane <fiddlosopher@gmail.com> | 2012-07-26 22:59:56 -0700 |
---|---|---|
committer | John MacFarlane <fiddlosopher@gmail.com> | 2012-07-26 22:59:56 -0700 |
commit | 00dc1e715e6317ab499c864137bb2a6bf7a75364 (patch) | |
tree | 3e11052509df347bc6fa7f386f0a0d431816919a /tests/Tests/Helpers.hs | |
parent | 6d7f0a1b816c405fb48bcf9736db17a0a7d49995 (diff) | |
download | pandoc-00dc1e715e6317ab499c864137bb2a6bf7a75364.tar.gz |
Moved WriterOptions and associated types Shared -> Options.
Diffstat (limited to 'tests/Tests/Helpers.hs')
-rw-r--r-- | tests/Tests/Helpers.hs | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/tests/Tests/Helpers.hs b/tests/Tests/Helpers.hs index 66879efed..86a92fb0c 100644 --- a/tests/Tests/Helpers.hs +++ b/tests/Tests/Helpers.hs @@ -17,8 +17,8 @@ import Test.Framework import Test.Framework.Providers.HUnit import Test.Framework.Providers.QuickCheck2 import Test.HUnit (assertBool) -import Text.Pandoc.Shared (normalize, defaultWriterOptions, - WriterOptions(..), removeTrailingSpace) +import Text.Pandoc.Shared (normalize, removeTrailingSpace) +import Text.Pandoc.Options import Text.Pandoc.Writers.Native (writeNative) import Language.Haskell.TH.Quote (QuasiQuoter(..)) import Language.Haskell.TH.Syntax (Q, runIO) @@ -85,18 +85,16 @@ class ToString a where toString :: a -> String instance ToString Pandoc where - toString d = writeNative defaultWriterOptions{ writerStandalone = s } - $ toPandoc d + toString d = writeNative def{ writerStandalone = s } $ toPandoc d where s = case d of (Pandoc (Meta [] [] []) _) -> False _ -> True instance ToString Blocks where - toString = writeNative defaultWriterOptions . toPandoc + toString = writeNative def . toPandoc instance ToString Inlines where - toString = removeTrailingSpace . writeNative defaultWriterOptions . - toPandoc + toString = removeTrailingSpace . writeNative def . toPandoc instance ToString String where toString = id |