Antoine Latter <[email protected]> writes:

> One reason library authors can prefer explicit export lists is that they can
> hide implementation details, which can then make it easier to change in the
> future without breaking the users of the library.

Also, with respect to cross-module optimisation, I seem to recall that
GHC doesn't do this (but JHC is trying to do so).

Explicit export lists not only help hide implementation details, they're
also useful in cases where two modules export functions with the same
name and someone decides to do un-qualified imports (i.e. just "import
Foo").

-- 
Ivan Lazar Miljenovic
[email protected]
IvanMiljenovic.wordpress.com
_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to