[Haskell] problems with Haskell 98's record system

Iavor Diatchki iavor.diatchki at gmail.com
Mon Feb 20 13:50:55 EST 2006


On 2/19/06, Johannes Waldmann <waldmann at imn.htwk-leipzig.de> wrote:
> > ... unless you export everything, you are forced to list all exports
> > explicitly, so there's no way to tell it just the few things you're
> > hiding (though that should not be a difficult extension).
> Alternative suggestion:
> remove export lists, introduce public/private modifiers
> http://www.haskell.org//pipermail/haskell-prime/2006-January/000230.html

Yeah, I have also thought about this option, and I think it is a good
idea.  It makes it a lot easier to deal with recursive modules,
because there is no need to do any fix-point computations, as it is
clear from the program text exactly what is exported from each module.
 And it nicely deals with re-exporting imported entities: public
imports get reexported, private ones don't.


More information about the Haskell mailing list