X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2Ftypecheck%2FTcGenDeriv.lhs;h=6e5aedc83e058d608a8b236b61c317a8dbff5be4;hb=14a496fd0b3aa821b69eb02736d5f41086576761;hp=36766717729ee599bfa083721d432fd25adbd303;hpb=2fc5aa708982a414235d3aff68dea4329b546063;p=ghc-hetmet.git diff --git a/compiler/typecheck/TcGenDeriv.lhs b/compiler/typecheck/TcGenDeriv.lhs index 3676671..6e5aedc 100644 --- a/compiler/typecheck/TcGenDeriv.lhs +++ b/compiler/typecheck/TcGenDeriv.lhs @@ -41,6 +41,7 @@ import Name import HscTypes import PrelInfo +import MkCore ( eRROR_ID ) import PrelNames import PrimOp import SrcLoc @@ -1667,7 +1668,7 @@ genAuxBind loc (GenCon2Tag tycon) rdr_name = con2tag_RDR tycon sig_ty = HsCoreTy $ - mkForAllTys (tyConTyVars tycon) $ + mkSigmaTy (tyConTyVars tycon) (tyConStupidTheta tycon) $ mkParentType tycon `mkFunTy` intPrimTy lots_of_constructors = tyConFamilySize tycon > 8