-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.
cheers peter
Trac metadata
Trac field | Value |
---|---|
Version | 7.0.3 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Package system |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |