X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2Ftypecheck%2FTcGenDeriv.lhs;h=2c0b89df089dbcecf43e6aadb53df76b894300fb;hb=c27e722fcf8ea5fb4dc0c64e9e1d6c4b66abd46c;hp=cc0adafbc8561623db58deed7951ed2a6e7e52af;hpb=b9235325e1dfc23cc489aa478aef852e76c4075f;p=ghc-hetmet.git diff --git a/compiler/typecheck/TcGenDeriv.lhs b/compiler/typecheck/TcGenDeriv.lhs index cc0adaf..2c0b89d 100644 --- a/compiler/typecheck/TcGenDeriv.lhs +++ b/compiler/typecheck/TcGenDeriv.lhs @@ -1689,7 +1689,7 @@ genAuxBind loc (GenTag2Con tycon) nlHsApp (nlHsVar tagToEnum_RDR) a_Expr)], L loc (TypeSig (L loc rdr_name) sig_ty)) where - sig_ty = nlHsTyVar (getRdrName intPrimTyCon) + sig_ty = nlHsTyVar (getRdrName intTyCon) `nlHsFunTy` (nlHsTyVar (getRdrName tycon)) rdr_name = tag2con_RDR tycon @@ -1699,7 +1699,7 @@ genAuxBind loc (GenMaxTag tycon) L loc (TypeSig (L loc rdr_name) sig_ty)) where rdr_name = maxtag_RDR tycon - sig_ty = nlHsTyVar (getRdrName intPrimTyCon) + sig_ty = nlHsTyVar (getRdrName intTyCon) rhs = nlHsApp (nlHsVar intDataCon_RDR) (nlHsLit (HsIntPrim max_tag)) max_tag = case (tyConDataCons tycon) of data_cons -> toInteger ((length data_cons) - fIRST_TAG)