Skip to content

Commit

Permalink
Merge pull request #67 from purescript-contrib/shadow-fix
Browse files Browse the repository at this point in the history
Fix shadowed names
  • Loading branch information
garyb authored Aug 8, 2017
2 parents 0be7c39 + 16c52a2 commit 5bb3e41
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Text/Parsing/Parser.purs
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,8 @@ instance monadTransParserT :: MonadTrans (ParserT s) where

-- | Set the consumed flag.
consume :: forall s m. Monad m => ParserT s m Unit
consume = modify \(ParseState input position _) ->
ParseState input position true
consume = modify \(ParseState input pos _) ->
ParseState input pos true

-- | Returns the current position in the stream.
position :: forall s m. Monad m => ParserT s m Position
Expand All @@ -135,4 +135,4 @@ fail message = failWithPosition message =<< position

-- | Fail with a message and a position.
failWithPosition :: forall m s a. Monad m => String -> Position -> ParserT s m a
failWithPosition message position = throwError (ParseError message position)
failWithPosition message pos = throwError (ParseError message pos)

0 comments on commit 5bb3e41

Please sign in to comment.