X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2Ftypecheck%2FTcDeriv.lhs;h=f9be61f96d81b85695756e3a33f0df8b5a9c16b8;hb=09d0e7d9ca9213c9c51f733dbda38cf8507dfa8d;hp=7a584cd0e1d5de46ff54ef798f5c42c71a1e53d1;hpb=ed81632e2112e76b88890e9893fb808593d6e4df;p=ghc-hetmet.git diff --git a/compiler/typecheck/TcDeriv.lhs b/compiler/typecheck/TcDeriv.lhs index 7a584cd..f9be61f 100644 --- a/compiler/typecheck/TcDeriv.lhs +++ b/compiler/typecheck/TcDeriv.lhs @@ -381,6 +381,8 @@ deriveTyData (deriv_pred, L loc decl@(TyData { tcdLName = L _ tycon_name, -- The "deriv_pred" is a LHsType to take account of the fact that for -- newtype deriving we allow deriving (forall a. C [a]). ; mkEqnHelp DerivOrigin (tvs++deriv_tvs) cls cls_tys tc_app } } +deriveTyData (deriv_pred, other_decl) + = panic "derivTyData" -- Caller ensures that only TyData can happen ------------------------------------------------------------------ mkEqnHelp orig tvs cls cls_tys tc_app @@ -541,7 +543,7 @@ cond_isProduct (gla_exts, rep_tc) | isProductTyCon rep_tc = Nothing | otherwise = Just why where - why = (pprSourceTyCon rep_tc) <+> + why = quotes (pprSourceTyCon rep_tc) <+> ptext SLIT("has more than one constructor") cond_typeableOK :: Condition