简体   繁体   English

至少缺少以下依赖项

[英]At least the following dependencies are missing

I am starting a project. 我正在开始一个项目。 my cabal file specifies 我的阴谋文件指定

build-depends:       base <4.8, criterion >=1.0 && <1.1, memoize <=0.6

criterion is in the sandbox of current directory. 条件位于当前目录的沙箱中。 If I check with ghc-pkg list memoize it will show. 如果我用ghc-pkg list memoize检查,将显示ghc-pkg list memoize

C:/Program Files/Haskell Platform/2014.2.0.0\lib\package.conf.d: (no packages)
C:\Users\Song\AppData\Roaming\ghc\x86_64-mingw32-7.8.3\package.conf.d: memoize-0.6

memoize is globally available. 备忘录是全球可用的。

However, when I run cabal repl, cabal complains memoize is missing. 但是,当我运行cabal repl时,cabal抱怨备忘录丢失了。 Do I have to re-install the package in the sandbox in this case? 在这种情况下,是否需要在沙盒中重新安装软件包?

Yes, you do. 是的你是。 The purpose of sandboxes is to work independently of the user package database, not in addition to it. 沙箱的目的是独立于用户软件包数据库工作,而不是除此以外。 You can override this by adding back the user package database with the --package-db flag, but it isn't a recommended workflow. 您可以通过添加带有--package-db标志的用户软件包数据库来覆盖它,但这不是推荐的工作流程。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM