#4072: Local package DB doesn't take preference over global DB
---------------------------------+------------------------------------------
Reporter: tibbe | Owner:
Type: bug | Status: new
Priority: normal | Component: Compiler
Version: 6.12.2 | Keywords:
Os: Unknown/Multiple | Testcase:
Architecture: Unknown/Multiple | Failure: None/Unknown
---------------------------------+------------------------------------------
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.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/4072>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs