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

Fix as-pattern for GHC 9. #87

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

Conversation

rumkeller
Copy link

Fixes the following error:

src/LLVM/Pretty.hs:478:7: error:
    Found a binding for the ‘@’ operator in a pattern position.
    Perhaps you meant an as-pattern, which must not be surrounded by whitespace
    |
478 |     e @ Invoke {..} ->

@edgar-gip
Copy link

Ah, I was going to prepare a pull request with the same change since I noticed the breakage, but now I see this has been sitting for two years.

It's too bad, since it prevents using this package with modern versions of GHC, and it's a trivial and safe fix...

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.

2 participants