id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	os	architecture	failure	difficulty	testcase	blockedby	blocking	related
7416	"ghci ""attempting to use module ... which is not loaded"" after cabal install, in source dir"	j.waldmann		"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.
"	bug	closed	normal		GHCi	7.6.1	invalid			Unknown/Multiple	Unknown/Multiple	None/Unknown	Unknown				
