projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1c9f77c
)
Warning police
author
simonpj@microsoft.com
<unknown>
Sun, 22 Apr 2007 21:19:37 +0000
(21:19 +0000)
committer
simonpj@microsoft.com
<unknown>
Sun, 22 Apr 2007 21:19:37 +0000
(21:19 +0000)
compiler/typecheck/TcDeriv.lhs
patch
|
blob
|
history
diff --git
a/compiler/typecheck/TcDeriv.lhs
b/compiler/typecheck/TcDeriv.lhs
index
7a584cd
..
58db618
100644
(file)
--- 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