deriving

Simon Peyton-Jones simonpj at microsoft.com
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).

Simon

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


More information about the Glasgow-haskell-users mailing list