The best thing to do is never to put an instance
declaration in an hi-boot file.   I don't think you ever really
need to.   In contrast, mutual recursion of type declarations
is often unavoidable.

The manual should really say this

Simon

| -----Original Message-----
| From: José Romildo Malaquias [mailto:[EMAIL PROTECTED]]
| Sent: 24 October 2000 16:00
| To: [EMAIL PROTECTED]
| Subject: Compiling mutually recursive modules involving instances
| 
| 
| Hello.
| 
| I am having difficulties in  compiling mutually recursive
| modules involving classes and instances in GHC 4.08.1.
| Basicaly I am not finding how to write a .hi-boot where
| I want to put classes and instances.
| 
| Consider a program with 3 modules: M1, M2 and Main. The
| sources are attached to the message. What should go
| into M2.hi-boot? Would anyone write M2.hi-boot for me
| so that I can learn it.
| 
| Thanks.
| 
| Romildo
| -- 
| Prof. José Romildo Malaquias <[EMAIL PROTECTED]>
| Departamento de Computação
| Universidade Federal de Ouro Preto
| Brasil
| 

_______________________________________________
Glasgow-haskell-users mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

Reply via email to