Skip to content

Commit

Permalink
A minor improvement to docs of ‘shouldFailWith’
Browse files Browse the repository at this point in the history
  • Loading branch information
mrkkrp committed Sep 24, 2016
1 parent 19e7e57 commit acd3459
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Test/Hspec/Megaparsec.hs
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,8 @@ p `shouldSucceedOn` s = shouldSucceed (p s)
-- Testing of error messages

-- | Create an expectation that parser should fail producing certain
-- 'ParseError'. Use functions from "Text.Megaparsec.Error" to construct
-- parse errors to check against. See "Text.Megaparsec.Pos" for functions to
-- construct textual positions.
-- 'ParseError'. Use the 'err' function from this module to construct a
-- 'ParseError' to compare with.
--
-- > parse (char 'x') "" "b" `shouldFailWith` err posI (utok 'b' <> etok 'x')

Expand Down

0 comments on commit acd3459

Please sign in to comment.