aboutsummaryrefslogtreecommitdiff
path: root/tests/Tests/Writers
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2016-07-14 08:54:06 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2016-07-14 08:54:06 -0700
commit0b0a0e730fedf56a4ddafa9b6e4a03a6cfad3986 (patch)
treefa7a4f9868457ea20f3f7d04228ebdaf627ef98b /tests/Tests/Writers
parent3d86228c5b5c1d2d013a267e269fa9bdbc519e33 (diff)
downloadpandoc-0b0a0e730fedf56a4ddafa9b6e4a03a6cfad3986.tar.gz
Removed some redundant class constraints.
Diffstat (limited to 'tests/Tests/Writers')
-rw-r--r--tests/Tests/Writers/AsciiDoc.hs2
-rw-r--r--tests/Tests/Writers/ConTeXt.hs4
-rw-r--r--tests/Tests/Writers/Docbook.hs2
-rw-r--r--tests/Tests/Writers/HTML.hs2
-rw-r--r--tests/Tests/Writers/LaTeX.hs4
-rw-r--r--tests/Tests/Writers/Markdown.hs2
6 files changed, 8 insertions, 8 deletions
diff --git a/tests/Tests/Writers/AsciiDoc.hs b/tests/Tests/Writers/AsciiDoc.hs
index 1b0a8de66..0062667cf 100644
--- a/tests/Tests/Writers/AsciiDoc.hs
+++ b/tests/Tests/Writers/AsciiDoc.hs
@@ -6,7 +6,7 @@ import Text.Pandoc
import Tests.Helpers
import Tests.Arbitrary()
-asciidoc :: (ToString a, ToPandoc a) => a -> String
+asciidoc :: (ToPandoc a) => a -> String
asciidoc = writeAsciiDoc def{ writerWrapText = WrapNone } . toPandoc
tests :: [Test]
diff --git a/tests/Tests/Writers/ConTeXt.hs b/tests/Tests/Writers/ConTeXt.hs
index d44b15658..5098a5fee 100644
--- a/tests/Tests/Writers/ConTeXt.hs
+++ b/tests/Tests/Writers/ConTeXt.hs
@@ -7,10 +7,10 @@ import Text.Pandoc
import Tests.Helpers
import Tests.Arbitrary()
-context :: (ToString a, ToPandoc a) => a -> String
+context :: (ToPandoc a) => a -> String
context = writeConTeXt def . toPandoc
-context' :: (ToString a, ToPandoc a) => a -> String
+context' :: (ToPandoc a) => a -> String
context' = writeConTeXt def{ writerWrapText = WrapNone } . toPandoc
{-
diff --git a/tests/Tests/Writers/Docbook.hs b/tests/Tests/Writers/Docbook.hs
index b1ac35980..2c0ff6179 100644
--- a/tests/Tests/Writers/Docbook.hs
+++ b/tests/Tests/Writers/Docbook.hs
@@ -7,7 +7,7 @@ import Text.Pandoc
import Tests.Helpers
import Tests.Arbitrary()
-docbook :: (ToString a, ToPandoc a) => a -> String
+docbook :: (ToPandoc a) => a -> String
docbook = writeDocbook def{ writerWrapText = WrapNone } . toPandoc
{-
diff --git a/tests/Tests/Writers/HTML.hs b/tests/Tests/Writers/HTML.hs
index 53ed95fc7..9b612e446 100644
--- a/tests/Tests/Writers/HTML.hs
+++ b/tests/Tests/Writers/HTML.hs
@@ -7,7 +7,7 @@ import Text.Pandoc
import Tests.Helpers
import Tests.Arbitrary()
-html :: (ToString a, ToPandoc a) => a -> String
+html :: (ToPandoc a) => a -> String
html = writeHtmlString def{ writerWrapText = WrapNone } . toPandoc
{-
diff --git a/tests/Tests/Writers/LaTeX.hs b/tests/Tests/Writers/LaTeX.hs
index 05dfcbd3d..4a1232db2 100644
--- a/tests/Tests/Writers/LaTeX.hs
+++ b/tests/Tests/Writers/LaTeX.hs
@@ -7,10 +7,10 @@ import Text.Pandoc
import Tests.Helpers
import Tests.Arbitrary()
-latex :: (ToString a, ToPandoc a) => a -> String
+latex :: (ToPandoc a) => a -> String
latex = writeLaTeX def{ writerHighlight = True } . toPandoc
-latexListing :: (ToString a, ToPandoc a) => a -> String
+latexListing :: (ToPandoc a) => a -> String
latexListing = writeLaTeX def{ writerListings = True } . toPandoc
{-
diff --git a/tests/Tests/Writers/Markdown.hs b/tests/Tests/Writers/Markdown.hs
index 8ffd7a8c0..1c27ebdf4 100644
--- a/tests/Tests/Writers/Markdown.hs
+++ b/tests/Tests/Writers/Markdown.hs
@@ -8,7 +8,7 @@ import Text.Pandoc
import Tests.Helpers
import Tests.Arbitrary()
-markdown :: (ToString a, ToPandoc a) => a -> String
+markdown :: (ToPandoc a) => a -> String
markdown = writeMarkdown def . toPandoc
{-