
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@haskell.org [mailto:glasgow-haskell-users- | bounces@haskell.org] On Behalf Of MR K P SCHUPKE | Sent: 08 October 2004 14:26 | To: glasgow-haskell-users@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@haskell.org | http://www.haskell.org/mailman/listinfo/glasgow-haskell-users