I'm unsure what my issue is here. I have a trio of modules A.hs, B.hs, and C.hs. All are located at C:\..path...\folder and modules B and C both import from A.
That is, both modules B and C contain the line import A
I can :l C:\..path..\folder\A.hs in gchi and play with its contents; however, ghci gives the following error when I try to :l C:\..path..\folder\B.hs or :l C:\..path..\folder\C.hs
Could not find module `A'
Use -v to see a list of the files searched for.
Failed, modules loaded: none.
Which I find odd because I had no trouble compiling B.hs to B.exe and running the executable. How can I compile and run a module that I can't load into ghci? Or, why would an import succeed at compile time but fail in loading; especially when that very module being imported is itself load-able?
ghci A.hs B.hs) does it give an error? - Wolfe Macfarlaneghci A.hs B.hsthen ghci makes the claim that both modules have been loaded, but then when I actually start trying to interact with the contents only functions and types from A.hs are accessible. I get a not-in-scope error for anything in B.hs. If I exchange the arguments (start up instead asghci B.hs A.hs) I can play with the contents of both. This peculiarity is interesting in it's own right. Still, the question of understanding why the original approach fails still stands; but, this work-around is appreciated. Thank you @WolfeMacfarlane - Tshimangaghci A.hs B.hs, you should be able to switch which module is "visible" using:m, as in:m *Aor:m *B. - Daniel Wagner