Merge commit '4f66e71' into happy-frontend
This commit is contained in:
@@ -133,7 +133,7 @@ alexGetByte inp = case inp ^. aiBytes of
|
|||||||
& aiPrevChar .~ c
|
& aiPrevChar .~ c
|
||||||
-- update the position
|
-- update the position
|
||||||
& aiPos %~ \ (ln,col) ->
|
& aiPos %~ \ (ln,col) ->
|
||||||
if (inp ^. aiPrevChar) == '\n'
|
if c == '\n'
|
||||||
then (ln+1,1)
|
then (ln+1,1)
|
||||||
else (ln,col+1)
|
else (ln,col+1)
|
||||||
pure (b, inp')
|
pure (b, inp')
|
||||||
|
|||||||
Reference in New Issue
Block a user