We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 289f1cc commit 8d8d3efCopy full SHA for 8d8d3ef
src/Parser/Support.idr
@@ -37,10 +37,11 @@ fromParsingErrors origin = ParseFail . (map fromError)
37
fromError (Error msg Nothing)
38
= (MkFC origin (0, 0) (0, 0), msg +> '.')
39
fromError (Error msg (Just t))
40
- = let fc = if start == end
41
- then MkFC origin start (mapSnd (+1) start)
42
- else MkFC origin start end
43
- in (fc, msg +> '.')
+ = let start = startBounds t; end = endBounds t in
+ let fc = if start == end
+ then MkFC origin start (mapSnd (+1) start)
+ else MkFC origin start end
44
+ in (fc, msg +> '.')
45
46
export
47
hex : Char -> Maybe Int
0 commit comments