Ticket #5511 (closed bug: wontfix)
-package should take priority over modules in the filesystem
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.