[project @ 1999-04-23 13:53:28 by simonm]
authorsimonm <unknown>
Fri, 23 Apr 1999 13:53:35 +0000 (13:53 +0000)
committersimonm <unknown>
Fri, 23 Apr 1999 13:53:35 +0000 (13:53 +0000)
commit699e9f229be993270e49ff7fcdd155508502c6ea
treee1864658635e3a30ed0afaad0128b8ce6c168872
parent3317173098ec5e8c06452d0f9a24b34ca6bb85ca
[project @ 1999-04-23 13:53:28 by simonm]
Support for

dataToTag# :: a -> Int#  (if a is a data type)

and (partial) support for

tagToEnum# :: Int# -> a  (if a is an enumerated type)

The con2tag functions generated by derived Eq,Ord and Enum instances
are now replaced by dataToTag# for data types with a large number of
constructors.
ghc/compiler/codeGen/CgCase.lhs
ghc/compiler/codeGen/CgConTbls.lhs
ghc/compiler/codeGen/CgExpr.lhs
ghc/compiler/prelude/PrelInfo.lhs
ghc/compiler/prelude/PrimOp.lhs
ghc/compiler/simplCore/ConFold.lhs
ghc/compiler/stgSyn/CoreToStg.lhs
ghc/compiler/typecheck/TcGenDeriv.lhs