Skip to content
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

Use fail instead of error #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

treeowl
Copy link

@treeowl treeowl commented Feb 12, 2024

error in Template Haskell splices should be used to report bugs in the Template Haskell code, and ideally not to report bugs in the user code calling it. When GHC encounters error, it gives a rather more verbose (and ugly) error report, based on that assumption. The usual way to report a problem in this context is to use fail.

`error` in Template Haskell splices should be used to report bugs
in the Template Haskell code, and ideally not to report bugs in
the user code calling it. When GHC encounters `error`, it gives a
rather more verbose (and ugly) error report, based on that assumption.
The usual way to report a problem in this context is to use `fail`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant