-
Notifications
You must be signed in to change notification settings - Fork 147
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
New: clashCompileError
#2399
New: clashCompileError
#2399
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM (assuming copyright / CI fixes). As far as the clash-dev
failure goes: it seems to happen sporadically and I can't reproduce it locally. Given that it is not anything user-facing I'd be fine with disabling the check for 9.2.
5fc0f35
to
8abfe3d
Compare
GHC 9.2 complaining about incomplete pattern matches (which actually pointed out a real bug in my code) made me realise it should probably do better on error reporting in the case a user passes some string which cannot be reduced to a literal by Clash. So I did some improvements there. I also trimmed the Changelog entry a bit; I can be a bit of a blabbermouth. |
8abfe3d
to
9605ab2
Compare
Martijn, could you review these changes: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd like to have the error "foo"
instead of undefined
, but otherwise LGTM. Feel free to ignore/incorporate the other suggestion.
9605ab2
to
2b3a08a
Compare
Ah, actually using |
2b3a08a
to
a15d5c2
Compare
Ah, it can be even shorter; that does produce a useless call stack as part of the error but the code is so nice and simple this way. [edit]
Previously the last two lines were not included by virtue of |
a15d5c2
to
080773c
Compare
Definitely an improvement! |
Based upon the version proposed by @basile-henry in issue #2020: #2020 (comment)
080773c
to
3c3aec7
Compare
Based upon the version proposed by @basile-henry in issue #2020:
#2020 (comment)
Still TODO: