Comment warning about transparent newtypes
authorsimonpj@microsoft.com <unknown>
Mon, 5 Nov 2007 22:07:44 +0000 (22:07 +0000)
committersimonpj@microsoft.com <unknown>
Mon, 5 Nov 2007 22:07:44 +0000 (22:07 +0000)
compiler/types/TyCon.lhs

index 84d16e0..7d11482 100644 (file)
@@ -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