VictorCMiraldo / generics-mrsop

MIT License
21 stars 1 forks source link

GHC 8.4.3 crashes with hs-elisp parser. #51

Open VictorCMiraldo opened 5 years ago

VictorCMiraldo commented 5 years ago

hs-elisp commit working around it

When compiling the following code:

import Generics.MRSOP.TH
import Generics.MRSOP.Base
import Language.ELisp -- comming from hs-elisp

generateFamilyWith 'W [t| [ESExp] |]

I run into:

> ghc: panic! (the 'impossible' happened)
>   (GHC version 8.4.3 for x86_64-unknown-linux):
>         completeCall
>   fail_aeDS
>   Select nodup wild_00
>   Stop[BoringCtxt] Rep
>                      W (El FamListESExp) (Lkup ix_aeTL CodesListESExp)
>   Call stack:
>       CallStack (from HasCallStack):
>         callStackDoc, called at compiler/utils/Outputable.hs:1150:37 in ghc:Outputable
>         pprPanic, called at compiler/simplCore/Simplify.hs:1533:9 in ghc:Simplify
>
> Please report this as a GHC bug:  http://www.haskell.org/ghc/reportabug

I want to make a small reproducible file before submitting it as a bug, though.

VictorCMiraldo commented 5 years ago

The panic happens at the same place as this issue, which was already triggered by us ( #33 ). :thinking:

VictorCMiraldo commented 5 years ago

TODO: