cabal-dev ghci masks wrong packages #83

s9gf4ult opened this Issue Dec 26, 2012 · 0 comments


None yet

1 participant


Here is the test project

cabal-dev ghci masks packages which are set in build-depends of this file

Loading package bytestring- ... linking ... done.
Loading package text- ... linking ... done.
Loading package blaze-builder- ... linking ... done.
Ok, modules loaded: Main.
Prelude Main> :load conduplay.hs

    Could not find module `Control.Monad.Trans'
    It is a member of the hidden package `mtl-2.1.2'.
    Perhaps you need to add `mtl' to the build-depends in your .cabal file.
    Use -v to see a list of the files searched for.
Failed, modules loaded: none.

but in the cabal file

executable conduplay
  main-is:             conduplay.hs
  -- other-modules:       
  build-depends:       base,

mtl is set as build-depends.

I belive this is because cabal-dev masks packages accoring .cabal file, but it should not, this is not right, because of different dependencies of different executables/libraries and different source files as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment