> > With present Haskell modules, it seems that `with'
> > automatically comes with `use' and clutters up your namespace.
> > That's why you sometimes need re-naming when importing.

Sorry, I missed that one. Manuel pointed out that with/use 
is already contained in the `qualified names'-proposal.
When I'm comparing Haskell to Ada, it seems that basically

import Foo                      = with Foo; use Foo;
import qualified Foo            = with Foo;

Still I'd like to have Ada's `use' on its own, as in

        with Text_Io;
        package Foo is
          ...
          procedure Bar is
            use Text_Io; 
          begin
            ...
          end;
          ...
        end Foo;

And while we're at it, what about
- nested modules
- with possibly private sub-modules
similar to the Ada(-95) things.

-- 
Johannes Waldmann, Institut f\"ur Informatik, UHH, Jena, D-07740 Germany,
(03641)  630793  [EMAIL PROTECTED]  http://www.minet.uni-
jena.de/~joe/ ...  Im naechsten Heft: Als Arbeiter in einer Radiofabrik -
Freundschaft mit dem Sohn  eines Luftwaffengenerals - Das  KGB ueberwacht
den Amerikaner auf Schritt und  Tritt - Alarmierende Verdachtsmomente bei
der Kaninchenjagd - Ungluecklich verliebt in eine rothaarige Juedin


Reply via email to