Change Show FC format to match vscode's expectation

This commit is contained in:
2025-10-11 16:36:23 -07:00
parent c39d1354c8
commit ddc73fb41a
6 changed files with 11 additions and 11 deletions

View File

@@ -158,8 +158,7 @@ data Error
instance Show FC where
-- We add one to the end column so it points after the end, which seems to be what Idris does
show (MkFC file (MkBounds l c el ec)) = "\{file}:(\{show $ l + 1}:\{show $ c + 1}-\{show $ el + 1}:\{show $ ec + 2})"
show (MkFC file (MkBounds l c el ec)) = "\{file}:\{show $ l + 1}:\{show $ c + 1}--\{show $ el + 1}:\{show $ ec + 2}"
showError : String -> Error -> String
showError src (E fc msg) = "ERROR at \{show fc}: \{msg}\n" ++ go 0 (lines src)