X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2Ftypecheck%2FTcGenDeriv.lhs;h=a7956e4fcc7fb4e4cc9aeeb88bf9381ef9a4c990;hb=23845e41c280c04d854138672fa0577581f66610;hp=1a0043ad03f2ed616ec40610ea44e3bc16b269df;hpb=9319fbaf14f420cbbd9e670093cc86c5f04b7800;p=ghc-hetmet.git diff --git a/compiler/typecheck/TcGenDeriv.lhs b/compiler/typecheck/TcGenDeriv.lhs index 1a0043a..a7956e4 100644 --- a/compiler/typecheck/TcGenDeriv.lhs +++ b/compiler/typecheck/TcGenDeriv.lhs @@ -156,7 +156,7 @@ gen_Eq_binds loc tycon no_nullary_cons = null nullary_cons rest | no_nullary_cons - = case maybeTyConSingleCon tycon of + = case tyConSingleDataCon_maybe tycon of Just _ -> [] Nothing -> -- if cons don't match, then False [([nlWildPat, nlWildPat], false_Expr)] @@ -680,7 +680,7 @@ gen_Ix_binds loc tycon = listToBag [single_con_range, single_con_index, single_con_inRange] data_con - = case maybeTyConSingleCon tycon of -- just checking... + = case tyConSingleDataCon_maybe tycon of -- just checking... Nothing -> panic "get_Ix_binds" Just dc | any isUnLiftedType (dataConOrigArgTys dc) -> pprPanic "Can't derive Ix for a single-constructor type with primitive argument types:" (ppr tycon)