#7416: ghci "attempting to use module ... which is not loaded" after cabal
install, in source dir
-----------------------------+----------------------------------------------
Reporter:  j.waldmann        |          Owner:                  
    Type:  bug               |         Status:  new             
Priority:  normal            |      Component:  GHCi            
 Version:  7.6.1             |       Keywords:                  
      Os:  Unknown/Multiple  |   Architecture:  Unknown/Multiple
 Failure:  None/Unknown      |      Blockedby:                  
Blocking:                    |        Related:                  
-----------------------------+----------------------------------------------
 with ghc-7.6.1 (but also with ghc-7.4.1):

 I do "cabal install" (with no arguments)
 in the source dir of some package
 (that has no separate src/ subdir),
 modules are installed fine (as shown by ghc-pkg list).

 Then I start  ghci  (still in the same dir)
 and load the module that I just installed.
 This fails with

 {{{
 Prelude> :m + TPDB.Data

 Top level:
     attempting to use module `TPDB.Data' (./TPDB/Data.hs) which is not
 loaded
 }}}

 It works when I start ghci from any other dir.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/7416>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler

_______________________________________________
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to