Skip to content

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