Skip to content

Commit 5bb3e41

Browse files
authored
Merge pull request #67 from purescript-contrib/shadow-fix
Fix shadowed names
2 parents 0be7c39 + 16c52a2 commit 5bb3e41

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: src/Text/Parsing/Parser.purs

+3-3
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,8 @@ instance monadTransParserT :: MonadTrans (ParserT s) where
122122

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

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

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

0 commit comments

Comments
 (0)