Compiling mutually recursive modules involving instances
Thu, 26 Oct 2000 01:50:30 -0700
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
| -----Original Message-----
| From: José Romildo Malaquias [mailto:email@example.com]
| Sent: 24 October 2000 16:00
| To: firstname.lastname@example.org
| Subject: Compiling mutually recursive modules involving instances
| 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.
| Prof. José Romildo Malaquias <email@example.com>
| Departamento de Computação
| Universidade Federal de Ouro Preto