FIX Trac #1825: standalone deriving Typeable
authorsimonpj@microsoft.com <unknown>
Tue, 20 Nov 2007 12:57:32 +0000 (12:57 +0000)
committersimonpj@microsoft.com <unknown>
Tue, 20 Nov 2007 12:57:32 +0000 (12:57 +0000)
commitf22f248b88346df835b25f03f8d3372c7bb87950
tree0c4ab6b731a7efde1e5bca91ade05b43a99712a4
parentd5659c2d96547d10aaf4227f0ecc5b10ada4e0f9
FIX Trac #1825: standalone deriving Typeable

Standalone deriving of typeable now requires you to say
instance Typeable1 Maybe
which is exactly the shape of instance decl that is generated
by a 'deriving( Typeable )' clause on the data type decl.

This is a bit horrid, but it's the only consistent way, at least
for now.  If you say something else, the error messages are helpful.

MERGE to 6.8 branch
compiler/typecheck/TcDeriv.lhs
compiler/typecheck/TcRnMonad.lhs