[project @ 2004-06-02 08:25:10 by simonpj]
authorsimonpj <unknown>
Wed, 2 Jun 2004 08:25:15 +0000 (08:25 +0000)
committersimonpj <unknown>
Wed, 2 Jun 2004 08:25:15 +0000 (08:25 +0000)
commit729a6eb1de3041883bd82c46864e1b5f50855b59
treec1c336ec36756548d70e14a89ccd5566cc462d7c
parent5568d10fa4d8a6e285249992a66426704dcec916
[project @ 2004-06-02 08:25:10 by simonpj]
-----------------------------------------------
       Record whether data constructors are declared infix
-----------------------------------------------

This allows us to generate the InfixC form in Template Hasekll.
And for 'deriving' Read and Show, we now read and parse the infix
form iff the constructor was declared infix, rather than just if
it does not have the default fixity (as before).

IfaceSyn changes slightly, so that IfaceConDecl can record their
fixity, so there are trivial changes scattered about, and
you'll need to recompile everything.

In TysWiredIn I took the opportunity to simplify pcDataCon slightly,
by eliminating the unused Theta argument.
13 files changed:
ghc/compiler/basicTypes/DataCon.lhs
ghc/compiler/iface/BinIface.hs
ghc/compiler/iface/BuildTyCl.lhs
ghc/compiler/iface/IfaceSyn.lhs
ghc/compiler/iface/LoadIface.lhs
ghc/compiler/iface/MkIface.lhs
ghc/compiler/iface/TcIface.lhs
ghc/compiler/parser/RdrHsSyn.lhs
ghc/compiler/prelude/TysWiredIn.lhs
ghc/compiler/typecheck/TcGenDeriv.lhs
ghc/compiler/typecheck/TcRnDriver.lhs
ghc/compiler/typecheck/TcSplice.lhs
ghc/compiler/typecheck/TcTyClsDecls.lhs