Re: Mutually recursive modules and derived instances of Data

2004-10-13 Thread Carsten Schultz
Hi Simon! On Wed, Oct 13, 2004 at 01:21:26PM +0100, Simon Peyton-Jones wrote: > Two fixes suggest themselves > > 1. Separate 'deriving' from the data type decl, so you can say > derive( Data TA, Typeable TA ) > anywhere. People sometimes ask for this for other reasons. Good thing. Plu

Re: Mutually recursive modules and derived instances of Data

2004-10-13 Thread Martin Sjögren
On Wed, 13 Oct 2004 13:21:26 +0100, Simon Peyton-Jones <[EMAIL PROTECTED]> wrote: > 1. Separate 'deriving' from the data type decl, so you can say > derive( Data TA, Typeable TA ) > anywhere. People sometimes ask for this for other reasons. > > 2. Allow instances in hi-boot files > > Y

RE: Mutually recursive modules and derived instances of Data

2004-10-13 Thread Simon Peyton-Jones
| If I have two modules which are mutually recursive; | | module A where | import B | data TA = TA TB deriving (Data, Typeable) | | module B where | import A | data TB = TB TA deriving (Data, Typeable) | | How do I go about writing a hi-boot that will work in GHC? Good question. At the moment