panic with `-ddump-parsed-ast`
Summary
ghc-9.2.1
Declaring an infix operator with implicit precedence causes a panic when given compiled with -ddump-parsed-ast
.
Example program (Bug.hs)
infixr ++++
Steps to reproduce
Compile with ghc -c -ddump-parsed-ast Bug.hs
Expected behavior
Should print an AST.
Environment
- GHC version used: 9.2.1
Optional:
- Operating System:
- System Architecture: