Simon Peyton-Jones simonpj at
Fri Oct 8 10:04:56 EDT 2004

It's all done by the module TcDeriv, which exports one function,
tcDeriving, which does all the work.  It generates source-code syntax
for derived classes.   You can grep for where tcDeriving is called (one
place in TcInstDcls).


| -----Original Message-----
| From: glasgow-haskell-users-bounces at
| bounces at] On Behalf Of MR K P SCHUPKE
| Sent: 08 October 2004 14:26
| To: glasgow-haskell-users at
| Subject: deriving
| How is deriving coded in ghc. For example the "Typeable" class, when
| the compilation sequence is this expanded? Which modules do this, and
| which functions?
| 	Keean.
| _______________________________________________
| Glasgow-haskell-users mailing list
| Glasgow-haskell-users at

More information about the Glasgow-haskell-users mailing list