summaryrefslogtreecommitdiff
path: root/ghc/compiler/HsVersions.h
diff options
context:
space:
mode:
authorsimonpj <unknown>2004-10-01 13:42:57 +0000
committersimonpj <unknown>2004-10-01 13:42:57 +0000
commit837824d2ff329a0f68c1434ae6812bea3ac7ec5f (patch)
treea8c1b734366c2d59c5b288cc3748a5f9cf6147dd /ghc/compiler/HsVersions.h
parentfadd15c6abed2f915ef61fd8df9ea5056f392f69 (diff)
downloadhaskell-837824d2ff329a0f68c1434ae6812bea3ac7ec5f.tar.gz
[project @ 2004-10-01 13:42:04 by simonpj]
------------------------------------ Simplify the treatment of newtypes Complete hi-boot file consistency checking ------------------------------------ In the representation of types, newtypes used to have a special constructor all to themselves, very like TyConApp, called NewTcApp. The trouble is that means we have to *know* when a newtype is a newtype, and in an hi-boot context we may not -- the data type might be declared as data T in the hi-boot file, but as newtype T = ... in the source file. In GHCi, which accumulates stuff from multiple compiles, this makes a difference. So I've nuked NewTcApp. Newtypes are represented using TyConApps again. This turned out to reduce the total amount of code, and simplify the Type data type, which is all to the good. This commit also fixes a few things in the hi-boot consistency checking stuff.
Diffstat (limited to 'ghc/compiler/HsVersions.h')
0 files changed, 0 insertions, 0 deletions