Local package DB doesn't take preference over global DB
|Reported by:||tibbe||Owned by:||simonmar|
|Type of failure:||None/Unknown||Difficulty:|
|Test Case:||Blocked By:|
I sometime find myself wanting to compile some small test program (say Test.hs) against a locally built Cabal package. Here's what I do:
ghc -c Test.hs -package-conf dist/package.conf.inplace
This doesn't work
Test.hs:4:0: Failed to load interface for `Data.Text.Lazy.Builder': Use -v to see a list of the files searched for.
The global version of text gets picked instead of the local one (and in this case the global version lacks the Data.Text.Lazy.Builder module). I expect the package given on the command line to take preference.
Workaround: Bump the version number of the local package.
Change History (9)
comment:2 Changed 4 years ago by simonmar
- Component changed from Compiler to Package system
- Status changed from new to infoneeded
comment:5 Changed 4 years ago by tibbe
- Status changed from infoneeded to new
- Version changed from 6.12.2 to 6.12.1