Skip to content

Commit

Permalink
fix location
Browse files Browse the repository at this point in the history
  • Loading branch information
janmasrovira committed Dec 27, 2024
1 parent af04f95 commit 22c8138
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ scanner fp bs = do
allFileLocs :: [FileLoc]
allFileLocs =
[ FileLoc
{ _locLine = Pos (fromIntegral l),
_locCol = Pos (fromIntegral c),
{ _locLine = Pos (1 + fromIntegral l),
_locCol = Pos (1 + fromIntegral c),
_locOffset = Pos (fromIntegral p)
}
| (FP.Pos p, (l, c)) <- zipExact importsPositions (posLineCols bs importsPositions)
Expand Down

0 comments on commit 22c8138

Please sign in to comment.