[Haskell-cafe] possible bug in default module lookup scheme / or invalid haskell?

Carter Schonwald carter.schonwald at gmail.com
Sun Jul 18 01:00:37 EDT 2010

Hello All, I'm not sure if this either a bug in how ghc does path/module
lookup or  it simply is invalid haskell:

consider modules A, A.B and A.B.C
where  A imports A.B, and A.B imports A.B.C
with the following file system layout


minimal file examples:
module A where
import A.B
 testA = "will it really really work?
module A.B where
import A.B.C
 testB = "will it work
module A.B.C where
testC = "will this work?"
if i run ghci A.hs everything's fine
but if in directory B i rune ghci B.hs,  i get
    Could not find module `A.B.C':
      Use -v to see a list of the files searched for.

it seems to me that if the default search path for ghc(i) includes the
current directory (which according to docs it does), this shouldn't be
happening.  (or is there some why this is good Behavior?)

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20100717/0f9e76da/attachment-0001.html

More information about the Haskell-Cafe mailing list