FIX REAL
This commit is contained in:
1 parent
3dfadc17ec
commit
4f66e71b9a
1 file changed
+1
-1
+1
-1
@@ -115,7 +115,7 @@ alexGetByte inp = case inp ^. aiBytes of
|
||||
& aiPrevChar .~ c
|
||||
-- update the position
|
||||
& aiPos %~ \ (ln,col) ->
|
||||
if (inp ^. aiPrevChar) == '\n'
|
||||
if c == '\n'
|
||||
then (ln+1,1)
|
||||
else (ln,col+1)
|
||||
pure (b, inp')
|
||||
|
||||
Reference in new issue
Block a user