-
-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Write custom type-errors #7
Comments
I'd be interested in helping out with this. I will have some time to put into this next week. I am just learning about custom type errors in Thinking With Types. Is there a small place that would be good for me to start on? |
@JonathanLorimer A good starting point would be to patch the Lines 65 to 66 in 4a09370
So instead of simply checking for an empty type-level list of exceptions, we can write a better custom error message in the spirit:
|
I would like to use
I am not really sure how to move a stack project beyond the nightly lts. Perhaps my first pass should just use the type error functions in |
Alright, I put together a preliminary PR #13 . I tried to follow the style of your previous commits, but let me know if there is a |
Currently the default GHC errors are produced, but we can do better with custom type errors. Probably even using the
type-errors-pretty
library.The text was updated successfully, but these errors were encountered: