Skip to content

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:
Edited by Shayne Fletcher
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information