STG lint error while compiling master
While compiling e054c5f0 with the following build.mk
,
BuildFlavour = devel2
include mk/flavours/$(BuildFlavour).mk
GhcStage2HcOpts += -eventlog
GhcStage1HcOpts += -eventlog
GhcLibHcOpts += -g3 -ddump-to-file -ddump-stg -dcore-lint -dstg-lint -dcmm-lint
GhcRtsHcOpts += -g3
GhcStage2HcOpts += -g3 -ddump-to-file -ddump-stg -dcore-lint -dstg-lint -dcmm-lint
I encountered this STG lint failure while compiling PprColour
,
stgEqType: unequal
PprColour
[Char]
ghc-stage1: panic! (the 'impossible' happened)
(GHC version 8.3.20170815 for x86_64-unknown-linux):
*** Stg Lint ErrMsgs: in Stg2Stg ***
compiler/utils/PprColour.hs:62:1: warning:
[RHS of defaultScheme :: Scheme]
In a RHS constructor application, con type doesn't match arg types:
Constructor type:
PprColour
-> PprColour
-> PprColour
-> PprColour
-> PprColour
-> PprColour
-> Scheme
Arg types:
[Char]
PprColour
String
String
String
String
*** Offending Program ***
...