-package should take priority over modules in the filesystem
|Reported by:||peteg||Owned by:|
|Type of failure:||Other||Test Case:|
|Related Tickets:||Differential Rev(s):|
Imagine I have a GHC package called P. I build it using Cabal and a directory structure like so:
P/ -- project root, containing P.cabal etc. P/Code/M.hs P/Tests/T.hs
I build P and install it.
In P/ I want to say:
ghci -package P Tests/T.hs
but ghci insists on loading Code/M.hs rather than using P - it seems to ignore the -package flag.