Skip to content

Commit 8d8d3ef

Browse files
committed
woops, missed the first let when resolving merge. thank goodness we are dealing with a static type system
1 parent 289f1cc commit 8d8d3ef

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/Parser/Support.idr

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,11 @@ fromParsingErrors origin = ParseFail . (map fromError)
3737
fromError (Error msg Nothing)
3838
= (MkFC origin (0, 0) (0, 0), msg +> '.')
3939
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 +> '.')
40+
= let start = startBounds t; end = endBounds t in
41+
let fc = if start == end
42+
then MkFC origin start (mapSnd (+1) start)
43+
else MkFC origin start end
44+
in (fc, msg +> '.')
4445

4546
export
4647
hex : Char -> Maybe Int

0 commit comments

Comments
 (0)