Skip to content

Infinite loop in typechecker/renamer on ghc 9.2.4

Summary

While working on our app I noticed a small change seems to lead to an infinite loop during typechecking / renaming, during cabal repl or compiling without optimizations.

-ddump-tc-trace -ddump-rn-trace Seems to stream output forever, it also looks like all memory was consumed

maybe this is a dupe of : #21530 (closed)

Steps to reproduce

sorry for lack of small reproducer

reverting the commit at HEAD of that branch 55937fa5 no longer exhibits issue

Expected behavior

compilation or type error

Environment

  • GHC version used: 9.2.4

Optional:

  • Operating System: debian linux
  • System Architecture: x86-64
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information