[project @ 2004-02-25 13:54:30 by simonpj]
authorsimonpj <unknown>
Wed, 25 Feb 2004 13:54:31 +0000 (13:54 +0000)
committersimonpj <unknown>
Wed, 25 Feb 2004 13:54:31 +0000 (13:54 +0000)
commit49ac6c398f2915de9eadff3cd2631bc31f806ec8
tree128f97f45ce9dcea8259869d5f9e6d30643855b1
parent60170b40dd3e3396dc3991884880f2365c9b0c08
[project @ 2004-02-25 13:54:30 by simonpj]
Yet another fix to the -Onot optimisation that hides data type
representations in .hi files.

1.  Expose the representation if any fields are exposed

2.  Don't expose newtypes whose data-cons are abstract, unless the
    rep type is a FFI type.  (Previously we were more conservative
    and always exposed newtypes, just in case of a foreign decl.)
ghc/compiler/iface/MkIface.lhs
ghc/compiler/typecheck/TcType.lhs