File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ satisfy :: forall m. (Monad m) => (Char -> Boolean) -> ParserT String m Char
4848satisfy f = try do
4949 c <- anyChar
5050 if f c then return c
51- else fail " Character did not satisfy predicate"
51+ else fail $ " Character ' " ++ fromChar c ++ " ' did not satisfy predicate"
5252
5353-- | Match the specified character
5454char :: forall m . (Monad m ) => Char -> ParserT String m Char
@@ -67,7 +67,7 @@ skipSpaces = do
6767 return unit
6868
6969-- | Match one of the characters in the array.
70- oneOf :: forall s m a . (Monad m ) => Array Char -> ParserT String m Char
70+ oneOf :: forall m . (Monad m ) => Array Char -> ParserT String m Char
7171oneOf ss = satisfy (flip elem ss)
7272
7373-- | Match any character not in the array.
You can’t perform that action at this time.
0 commit comments