-
Notifications
You must be signed in to change notification settings - Fork 3
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
Compile time error blowups #1
Comments
Unfortunately I don't think there's a good way to solve this unless you add a type signature to the first argument. The main issue here is that GHC emits two different error messages for the same snippet and this is exacerbated by what the splice expands to. See:
So there's not much that can be done here, unless you bind the formatting function to a name that GHC will use rather than expanding it. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When any compile time format inconsistences are found, GHC makes very large and scary type error. Not userfriendly way to say "your format string is incorrect":(
The text was updated successfully, but these errors were encountered: