Changed infix level of testing combinators.

This avoids clash with (<>), which is defined in Data.Monoid
as having infix 6.
This commit is contained in:
John MacFarlane 2012-02-05 13:23:06 -08:00
parent 9bf32a7554
commit 1f20f77712
7 changed files with 7 additions and 7 deletions

View file

@ -79,7 +79,7 @@ vivid s = setSGRCode [SetColor Background Dull Red
, SetColor Foreground Vivid White] ++ s
++ setSGRCode [Reset]
infix 6 =?>
infix 5 =?>
(=?>) :: a -> b -> (a,b)
x =?> y = (x, y)

View file

@ -12,7 +12,7 @@ import Data.Monoid (mempty)
latex :: String -> Pandoc
latex = readLaTeX defaultParserState
infix 5 =:
infix 4 =:
(=:) :: ToString c
=> String -> (String, c) -> Test
(=:) = test latex

View file

@ -15,7 +15,7 @@ markdown = readMarkdown defaultParserState{ stateStandalone = True }
markdownSmart :: String -> Pandoc
markdownSmart = readMarkdown defaultParserState{ stateSmart = True }
infix 5 =:
infix 4 =:
(=:) :: ToString c
=> String -> (String, c) -> Test
(=:) = test markdown

View file

@ -11,7 +11,7 @@ import Text.Pandoc
rst :: String -> Pandoc
rst = readRST defaultParserState{ stateStandalone = True }
infix 5 =:
infix 4 =:
(=:) :: ToString c
=> String -> (String, c) -> Test
(=:) = test rst

View file

@ -26,7 +26,7 @@ which is in turn shorthand for
test context "my test" (X,Y)
-}
infix 5 =:
infix 4 =:
(=:) :: (ToString a, ToPandoc a)
=> String -> (a, String) -> Test
(=:) = test context

View file

@ -23,7 +23,7 @@ which is in turn shorthand for
test html "my test" (X,Y)
-}
infix 5 =:
infix 4 =:
(=:) :: (ToString a, ToPandoc a)
=> String -> (a, String) -> Test
(=:) = test html

View file

@ -22,7 +22,7 @@ which is in turn shorthand for
test markdown "my test" (X,Y)
-}
infix 5 =:
infix 4 =:
(=:) :: (ToString a, ToPandoc a)
=> String -> (a, String) -> Test
(=:) = test markdown