core: Add show for ParserError
This commit is contained in:
parent
222ae17180
commit
5e5ede87b4
1 changed files with 10 additions and 0 deletions
|
@ -25,6 +25,16 @@ record ParseError where
|
|||
message : String
|
||||
```
|
||||
|
||||
<!-- idris
|
||||
export
|
||||
Show ParseError where
|
||||
show (MkParseError state message) =
|
||||
let (line, col) = positionPair state
|
||||
(line, col) = (show line, show col)
|
||||
position = show state.position.index
|
||||
in "Error at line \{line}, column \{col} (\{position}): \{message}"
|
||||
-->
|
||||
|
||||
## Type Alias
|
||||
|
||||
```idris
|
||||
|
|
Loading…
Add table
Reference in a new issue