-
Notifications
You must be signed in to change notification settings - Fork 109
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make sure error messages announce that they are, in fact, error messa…
…ges. Addresses #16.
- Loading branch information
Showing
6 changed files
with
12 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,12 +43,11 @@ instance Pretty ErrType where | |
ParseErr -> "Parse error:" | ||
TypeErr -> "Type error:" | ||
LinErr -> "Linearity error:" | ||
CompilerErr -> "Compiler bug!" | ||
UnboundVarErr -> "Variable not in scope:" | ||
RepeatedVarErr -> "Variable redefined:" | ||
UnboundVarErr -> "Error: variable not in scope: " | ||
RepeatedVarErr -> "Error: variable already defined: " | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
dougalm
Author
Collaborator
|
||
NotImplementedErr -> "Not implemented:" | ||
OtherErr -> "Error:" | ||
UpstreamErr -> "Upstream failure" | ||
CompilerErr -> "Compiler bug!" | ||
MiscErr -> "Error:" | ||
|
||
instance Pretty Type where | ||
pretty t = prettyTyDepth 0 t | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Why do these have spaces and others don't.
E.g
Compiler bug!Can't lower type to imp: (Real -> (Real, (Real -> Real)))
Shouldn't they all have spaces?