-
Notifications
You must be signed in to change notification settings - Fork 82
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 of alex-3.5.2.0 on GHC/compiler/Lexer.x leads to errors #266
Comments
Thanks for the report.
GHC should not fail hard if someone passes the same information twice instead of just once. I am open for discussion on whether the INLINE pragma now generated by Alex is a good or bad idea. CC: @brandonchinn178 |
I figured it would be fairly uncontroversial; I can't imagine a situation where you wouldnt want to inline it. I didnt realize that GHC would fail if it's passed twice. I'm open to reverting it to avoid a breaking change, but IMO this is something that belongs in Alex, not user-code |
@brandonchinn178 From looking at the GHC sources, it seems like you introduced the
Would it be possible for you to place this pragma there under a suitable |
the generated Lexer.hs fails to compile with
to reproduce
The text was updated successfully, but these errors were encountered: