[Haskell-cafe] List of exports of a module - are there
nccb2 at kent.ac.uk
Wed May 13 06:23:16 EDT 2009
> 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.
More information about the Haskell-Cafe