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

cab ghci can't choose sandboxed packages correctly #29

Open
konn opened this issue Aug 23, 2014 · 0 comments
Open

cab ghci can't choose sandboxed packages correctly #29

konn opened this issue Aug 23, 2014 · 0 comments

Comments

@konn
Copy link

konn commented Aug 23, 2014

If the different versions of dependent package are installed both globally and in sandbox and global version is newer than sandboxed one, then cab ghci loads global one instead of sandbox.

For example, we are writing some package foo and it depends of bar ==0.2.* and following:

$ ghc-pkg list bar
~/.ghc/x86_64-darwin-7.8.3/package.conf.d
  bar-0.2.3.1

$ cabal sandbox hc-pkg list bar
~/haskell/projects/foo/.cabal-sandbox/x86_64-osx-ghc-7.8.3-packages.conf.d
   bar-0.2.1.4

Then, cab ghci loads global bar-0.2.3.1 rather than sandboxed bar-0.2.1.4 and leads to type-error.

cabal repl correctly loads sandboxed version in the same situation, so I think this is not intended behaviour.

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