Export lists in modules

Christopher Brown cmb21 at kent.ac.uk
Mon Feb 20 19:37:28 EST 2006


Jared,

>
> How about combining the two (since 'hiding' is already a reserved  
> word):
>
>> module Module hiding ( list, of, things, not, to, export ) where ....
>
> Everything gets exported except what you explicitly hide. Is this
> general enough? Are there reasons why this might not work? And does
> this solve your problem? Does anyone like this idea (aethestically and
> pragmatically)?

This seems to make perfect sense to me, by having this syntax we can  
cater for three different exports:

export explicit functions only;
export everything in the module and
export everything except explicitly named functions.

Thanks.

Chris.


>
>   Jared.

Christopher Brown
Ph.D. Student University of Kent. UK.
http://www.cs.kent.ac.uk/people/rpg/cmb21/index.html





More information about the Haskell-prime mailing list