Skip to content

Commit 3c931ed

Browse files
authored
Merge pull request #42 from tmcgilchrist/topic/fix_travis
Fix shadowed variable warning for pos
2 parents fd78a6d + dea4314 commit 3c931ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Text/Parsing/Parser/Pos.purs

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ initialPos = Position { line: 1, column: 1 }
2727

2828
-- | Updates a `Position` by adding the columns and lines in `String`.
2929
updatePosString :: Position -> String -> Position
30-
updatePosString pos str = foldl updatePosChar pos (split (wrap "") str)
30+
updatePosString pos' str = foldl updatePosChar pos' (split (wrap "") str)
3131
where
3232
updatePosChar (Position pos) c = case c of
3333
"\n" -> Position { line: pos.line + 1, column: 1 }

0 commit comments

Comments
 (0)