Maurício wrote:
Hi,

When we want to list which declarations are exported by a module
we do:

module Mod ( list of exports ) where ...

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?
Unfortunately, I don't think so. Which is a shame, as I do sometimes find myself wanting:

module Mod hiding (someInternalHelperFunction) where

which would seem to logically fit (we have explicit lists and hiding for import, why not both for export?). Leaving aside the arguments about 200 exports, even for 20 exports it would sometimes be cleaner to write the above to hide one, than to spell out the other 19 in an export list.

Neil.
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to