We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2d5cafb commit 92c6b50Copy full SHA for 92c6b50
src/Text/Parsing/Parser.purs
@@ -131,7 +131,7 @@ position = gets \(ParseState _ pos _) -> pos
131
132
-- | Fail with a message.
133
fail :: forall m s a. Monad m => String -> ParserT s m a
134
-fail message = throwError <<< ParseError message =<< position
+fail message = failWithPosition message =<< position
135
136
-- | Fail with a message and a position.
137
failWithPosition :: forall m s a. Monad m => String -> Position -> ParserT s m a
0 commit comments