[Haskell-cafe] Re: List of exports of a module - are there alternatives?

Maurício briqueabraque at yahoo.com
Wed May 13 17:20:23 EDT 2009

I would like a keyword we could add to a single declaration,

hidden a :: Int -> Int
a = (...)

The 200 names is not the best example. It's more a question of
proportion: if you export 5 declarations in a module with 20,
it's OK, but if you export 19 declarations in a module of 20
maintenance can be painfull to your eyes, going up and down
into your file to check if the list is correct.


> I would like to see this too. Maybe just a private keyword that would
> make everything after it invisible to the outside (or until a public
> keyword appeared)?
>> Are there propositions to alternatives to that (I could not
>> find one)? Like, say, add a "do export" or "do not export"
>> tag to declarations we want to (not) export?
>> (I think something like that could be nice when we have modules
>> with 200 declarations and just a few are (not) going to be
>> exported.)

More information about the Haskell-Cafe mailing list