Skip to content

Core lint error after desugaring

I was investigating a "PAP object entered!" crash and found out that almost every module in my program fails to compile with -dcore-lint. I'll attach a reduced test case that reproduces the issue:

$ ghc-7.3.20110912 -fforce-recomp -dcore-lint Bug.hs
[1 of 1] Compiling Bug              ( Bug.hs, Bug.o )
*** Core Lint errors : in result of Desugar ***
{-# LINE 113 "Bug.hs #-}:
    [in body of lambda with binder temp_ahE :: Bug.HElemOf
                                                 (GHC.Types.Int
                                                  Bug.:* ([GHC.Types.Char] Bug.:* Bug.HNil))]
...
Trac metadata
Trac field Value
Version 7.3
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Compiler
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information