cabal sandbox init
cabal install haskeline
... installs successfully ...
ghci
Prelude> :module +System.Console.Haskeline
<no location info>:
Could not find module `System.Console.Haskeline'
ghc-pkg list haskeline
.. not found ..我该怎么做才能和阴谋集团一起工作呢?如果我通常安装haskeline (没有沙箱),它是好的(ghc列表haskeline找到它)。
发布于 2014-01-10 04:14:27
或者像Joseph提到的那样使用cabal repl,或者您可以显式地将包db传递给相对于当前工作目录的GHCi shell。
ghci -no-user-package-db -package-db .cabal-sandbox/*-packages.conf.d YourModule.hs建议你只使用阴谋集团。
发布于 2014-01-10 03:57:29
为了让ghci使用本地沙箱,您必须(a)设置一个my-project.cabal文件,(b)使用cabal repl。
https://stackoverflow.com/questions/21035806
复制相似问题