Skip to content

ghci "attempting to use module ... which is not loaded" after cabal install, in source dir

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.

Trac metadata
Trac field Value
Version 7.6.1
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component GHCi
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information