@@ -2,8 +2,8 @@
2{-# LANGUAGE OverloadedStrings #-}
2{-# LANGUAGE OverloadedStrings #-}
3module Tests.Writers.Muse (tests) where
3module Tests.Writers.Muse (tests) where
5−import Prelude
5+import Prelude hiding (unlines)
6−import Data.Text (unpack)
6+import Data.Text (Text, unlines)
7import Test.Tasty
7import Test.Tasty
8import Tests.Helpers
8import Tests.Helpers
9import Text.Pandoc
9import Text.Pandoc
@@ -15,15 +15,15 @@ defopts = def{ writerWrapText = WrapPreserve,
15 writerExtensions = extensionsFromList [Ext_amuse,
15 writerExtensions = extensionsFromList [Ext_amuse,
16 Ext_auto_identifiers] }
16 Ext_auto_identifiers] }
18−muse :: (ToPandoc a) => a -> String
18+muse :: (ToPandoc a) => a -> Text
19muse = museWithOpts defopts
19muse = museWithOpts defopts
21−museWithOpts :: (ToPandoc a) => WriterOptions -> a -> String
21+museWithOpts :: (ToPandoc a) => WriterOptions -> a -> Text
22−museWithOpts opts = unpack . purely (writeMuse opts) . toPandoc
22+museWithOpts opts = purely (writeMuse opts) . toPandoc
25(=:) :: (ToString a, ToPandoc a)
25(=:) :: (ToString a, ToPandoc a)
26− => String -> (a, String) -> TestTree
26+ => String -> (a, Text) -> TestTree
27(=:) = test muse
27(=:) = test muse
29noteLocationTestDoc :: Blocks
29noteLocationTestDoc :: Blocks