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

Build failure due to syntax error in as-pattern #91

Open
meicpalmer opened this issue Jul 31, 2023 · 2 comments
Open

Build failure due to syntax error in as-pattern #91

meicpalmer opened this issue Jul 31, 2023 · 2 comments

Comments

@meicpalmer
Copy link

llvm-hs-pretty> /tmp/stack-04e76048a098e482/llvm-hs-pretty-0.9.0.0/src/LLVM/Pretty.hs:480:7: error:
llvm-hs-pretty>     Found a binding for the ‘@’ operator in a pattern position.
llvm-hs-pretty>     Perhaps you meant an as-pattern, which must not be surrounded by whitespace
llvm-hs-pretty>     |
llvm-hs-pretty> 480 |     e @ Invoke {..} ->
llvm-hs-pretty>     |       ^
@meicpalmer
Copy link
Author

I think later versions of GHC don't allow this syntax but earlier versions do. I don't know which version made the change.

@edgar-gip
Copy link

There is a PR with a fix for this already, but unfortunately it's been sitting for two years:
#87

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

No branches or pull requests

2 participants