1. Bryan O'Sullivan
  2. attoparsec

Commits

Bryan O'Sullivan  committed 64b40b2

Print more useful error message if string match fails.

  • Participants
  • Parent commits 4805e06
  • Branches default

Comments (0)

Files changed (1)

File src/Text/ParserCombinators/ByteStringParser.hs

View file
 
 string :: String -> Parser C.ByteString String
 
-string = mapM char
+string s = mapM char s
+         <?> show s
 
 count :: Int -> Parser st a -> Parser st [a]