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:
7c1e4f1
)
Comment warning about transparent newtypes
author
simonpj@microsoft.com
<unknown>
Mon, 5 Nov 2007 22:07:44 +0000
(22:07 +0000)
committer
simonpj@microsoft.com
<unknown>
Mon, 5 Nov 2007 22:07:44 +0000
(22:07 +0000)
compiler/types/TyCon.lhs
patch
|
blob
|
history
diff --git
a/compiler/types/TyCon.lhs
b/compiler/types/TyCon.lhs
index
84d16e0
..
7d11482
100644
(file)
--- a/
compiler/types/TyCon.lhs
+++ b/
compiler/types/TyCon.lhs
@@
-256,6
+256,8
@@
data AlgTyConRhs
-- See Note [Newtype coercions]
-- Invariant: arity = #tvs in nt_etad_rhs;
-- See Note [Newtype eta]
+ -- Watch out! If any newtypes become transparent
+ -- again check Trac #1072.
nt_etad_rhs :: ([TyVar], Type) ,
-- The same again, but this time eta-reduced