Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cabal-dev ghci masks wrong packages #83

Open
s9gf4ult opened this issue Dec 26, 2012 · 0 comments
Open

cabal-dev ghci masks wrong packages #83

s9gf4ult opened this issue Dec 26, 2012 · 0 comments

Comments

@s9gf4ult
Copy link

Here is the test project https://github.com/s9gf4ult/conduplay/tree/tag1.

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

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

conduplay.hs:13:8:
    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,
                       conduit,
                       text,
                       mtl,
                       unordered-containers,
                       containers

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant