Trex and module system

Iavor S. Diatchki diatchki@cse.ogi.edu
Tue, 18 Feb 2003 11:51:06 -0800


hello,

the recent updates of the module system seem to have broken Trex.
the problem is that Hugs.Trex tries to export "EmptyRec" which is a data 
constructor and so cannot be named explicitly in an export list.
(interestingly enough the Prelude does the same, but no error seems to 
occur)

a quick fix that seems to work is to change the Hugs.Trex module as follows:

module Hugs.Trex( module Hugs.Trex ) where

import Hugs.Prelude as Hugs.Trex -- ( Rec, EmptyRec, EmptyRow )

of course now Trex exports the whole of the Prelude, but hey it is a 
quick fix :-)

bye
iavor


-- 
==================================================
| Iavor S. Diatchki, Ph.D. student               |
| Department of Computer Science and Engineering |
| School of OGI at OHSU                          |
| http://www.cse.ogi.edu/~diatchki               |
==================================================