Namespace trouble

David Brown haskell at davidb.org
Wed May 19 14:54:52 EDT 2004


On Wed, May 19, 2004 at 08:13:11PM +0100, Jorge Adriano Aires wrote:

> > MyProgram/A.hs        name: A        import Aux.C
> > MyProgram/Aux/B.hs    name: Aux.B    import C
> > MyProgram/Aux/C.hs    name: Aux.C    
> 
> But complains when importing C from B since its name is Aux.C.
> What is the most elegant way to deal with such cases?

The heirarchical module names are always "full paths" to the module.
Aux.B still needs to refer to Aux.C.

This is annoying if you want to move something into a different place,
since it will refer to itself entirely using the full names.

The description of the Heirarchical module standard suggests that they
are open to ideas for improvement :-)

Dave Brown


More information about the Glasgow-haskell-users mailing list