[Haskell-cafe] Are explicit exports and local imports desirable in a production application?
lemming at henning-thielemann.de
Wed Sep 16 20:55:35 UTC 2020
On Wed, 16 Sep 2020, MarLinn wrote:
> But I agree that explicit exports are flawed, because the vast majority
> of "stuff" is usually exported. A better way might be to export
> everything except explicitly hidden stuff. That's not possible right now
> (I think), but imagine syntax like this:
> module Foo (..) hiding ( bar, baz ) where
> module Foo (module Foo hiding ( bar, baz )) where
In Oberon you do not specify an export list, instead you mark exported
identifiers with a star. This way you avoid duplication of identifiers in
the export list and the identifier order is always the order of
definitions in the module.
More information about the Haskell-Cafe