You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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 ofbar ==0.2.*
and following:Then,
cab ghci
loads globalbar-0.2.3.1
rather than sandboxedbar-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.The text was updated successfully, but these errors were encountered: