Namespace trouble

Jorge Adriano Aires jadrian at
Wed May 19 21:13:11 EDT 2004

I have the following structure:

> MyProgram/A.hs        
> MyProgram/Aux/B.hs    
> MyProgram/Aux/C.hs    

> A imports C
> B imports C

Can I make this work using namespaces only (i.e. no -i flag)? 
I expected this to work:

> 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?


More information about the Glasgow-haskell-users mailing list