diff options
author | John MacFarlane <jgm@berkeley.edu> | 2016-10-24 22:31:36 +0200 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2016-10-24 22:31:36 +0200 |
commit | d51e475badfcfb6e913ae4959cb1b400b4075446 (patch) | |
tree | 4941b2e6bbb9a898d429e634b1830e08c508fce5 /tests | |
parent | 7b1a9d7aca1737e197609bd17dcbdc1e8c9d9bf6 (diff) | |
download | pandoc-d51e475badfcfb6e913ae4959cb1b400b4075446.tar.gz |
Export Text.Pandoc.Error in Text.Pandoc.
[API change]
Diffstat (limited to 'tests')
-rw-r--r-- | tests/Tests/Readers/HTML.hs | 1 | ||||
-rw-r--r-- | tests/Tests/Readers/LaTeX.hs | 1 | ||||
-rw-r--r-- | tests/Tests/Readers/Markdown.hs | 2 | ||||
-rw-r--r-- | tests/Tests/Readers/Odt.hs | 7 | ||||
-rw-r--r-- | tests/Tests/Readers/Org.hs | 1 | ||||
-rw-r--r-- | tests/Tests/Readers/RST.hs | 1 | ||||
-rw-r--r-- | tests/Tests/Readers/Txt2Tags.hs | 1 |
7 files changed, 1 insertions, 13 deletions
diff --git a/tests/Tests/Readers/HTML.hs b/tests/Tests/Readers/HTML.hs index 1a6983b2b..09041bfd1 100644 --- a/tests/Tests/Readers/HTML.hs +++ b/tests/Tests/Readers/HTML.hs @@ -7,7 +7,6 @@ import Tests.Helpers import Text.Pandoc.Arbitrary() import Text.Pandoc.Builder import Text.Pandoc -import Text.Pandoc.Error html :: String -> Pandoc html = handleError . readHtml def diff --git a/tests/Tests/Readers/LaTeX.hs b/tests/Tests/Readers/LaTeX.hs index c70ce8052..27e775724 100644 --- a/tests/Tests/Readers/LaTeX.hs +++ b/tests/Tests/Readers/LaTeX.hs @@ -7,7 +7,6 @@ import Tests.Helpers import Text.Pandoc.Arbitrary() import Text.Pandoc.Builder import Text.Pandoc -import Text.Pandoc.Error latex :: String -> Pandoc latex = handleError . readLaTeX def diff --git a/tests/Tests/Readers/Markdown.hs b/tests/Tests/Readers/Markdown.hs index e877b81ca..9219b6930 100644 --- a/tests/Tests/Readers/Markdown.hs +++ b/tests/Tests/Readers/Markdown.hs @@ -7,9 +7,7 @@ import Tests.Helpers import Text.Pandoc.Arbitrary() import Text.Pandoc.Builder import qualified Data.Set as Set --- import Text.Pandoc.Shared ( normalize ) import Text.Pandoc -import Text.Pandoc.Error markdown :: String -> Pandoc markdown = handleError . readMarkdown def diff --git a/tests/Tests/Readers/Odt.hs b/tests/Tests/Readers/Odt.hs index 74796d899..b0c5aefb1 100644 --- a/tests/Tests/Readers/Odt.hs +++ b/tests/Tests/Readers/Odt.hs @@ -5,18 +5,13 @@ import Text.Pandoc.Options import Text.Pandoc.Readers.Native import Text.Pandoc.Readers.Markdown import Text.Pandoc.Definition -import Text.Pandoc.Error import Tests.Helpers import Test.Framework ---import Test.HUnit (assertBool) ---import Test.Framework.Providers.HUnit import qualified Data.ByteString.Lazy as B import Text.Pandoc.Readers.Odt import Text.Pandoc.Writers.Native (writeNative) import qualified Data.Map as M ---import Text.Pandoc.MediaBag (MediaBag, lookupMedia, mediaDirectory) ---import Codec.Archive.Zip - +import Text.Pandoc.Error tests :: [Test] tests = testsComparingToMarkdown ++ testsComparingToNative diff --git a/tests/Tests/Readers/Org.hs b/tests/Tests/Readers/Org.hs index 3eab710dc..48d0da51c 100644 --- a/tests/Tests/Readers/Org.hs +++ b/tests/Tests/Readers/Org.hs @@ -7,7 +7,6 @@ import Tests.Helpers import Text.Pandoc.Builder import Text.Pandoc import Data.List (intersperse) -import Text.Pandoc.Error org :: String -> Pandoc org = handleError . readOrg def diff --git a/tests/Tests/Readers/RST.hs b/tests/Tests/Readers/RST.hs index 06a15ad98..9ecbb7af7 100644 --- a/tests/Tests/Readers/RST.hs +++ b/tests/Tests/Readers/RST.hs @@ -7,7 +7,6 @@ import Tests.Helpers import Text.Pandoc.Arbitrary() import Text.Pandoc.Builder import Text.Pandoc -import Text.Pandoc.Error rst :: String -> Pandoc rst = handleError . readRST def{ readerStandalone = True } diff --git a/tests/Tests/Readers/Txt2Tags.hs b/tests/Tests/Readers/Txt2Tags.hs index e291c3ffe..1bda32a49 100644 --- a/tests/Tests/Readers/Txt2Tags.hs +++ b/tests/Tests/Readers/Txt2Tags.hs @@ -7,7 +7,6 @@ import Tests.Helpers import Text.Pandoc.Arbitrary() import Text.Pandoc.Builder import Text.Pandoc -import Text.Pandoc.Error import Data.List (intersperse) import Text.Pandoc.Readers.Txt2Tags |