
19 May
2004
19 May
'04
4:56 p.m.
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?
Answering myself, this works:
MyProgram/A.hs name: A import Aux.C MyProgram/Aux/B.hs name: Aux.B import Aux.C MyProgram/Aux/C.hs name: Aux.C
I just have to load B from MyProgram when testing it in ghci, instead of loading it in MyProgram/Aux. Thanks to Lunar for the tip. J.A.