cvs commit: fptools/ghc/compiler/iface MkIface.lhs
fptools/ghc/compiler/typecheck TcType.lhs
Simon Peyton Jones
simonpj at glass.cse.ogi.edu
Wed Feb 25 05:54:31 EST 2004
simonpj 2004/02/25 05:54:31 PST
Modified files:
ghc/compiler/iface MkIface.lhs
ghc/compiler/typecheck TcType.lhs
Log:
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.)
Revision Changes Path
1.10 +26 -15 fptools/ghc/compiler/iface/MkIface.lhs
1.102 +10 -0 fptools/ghc/compiler/typecheck/TcType.lhs
More information about the Cvs-ghc
mailing list