简体   繁体   English

在Mac上找不到模块“ Test.QuickCheck”

[英]Could not find module ‘Test.QuickCheck’ on Mac

When I try to test my code, IntelliJ gave me this error. 当我尝试测试代码时,IntelliJ给了我这个错误。 However, I have used cabal install QuickCheck to install. 但是,我已经使用cabal install QuickCheck进行安装。

Testing.hs:3:1: error:
    Could not find module ‘Test.QuickCheck’
    Use -v to see a list of the files searched for.
  |
3 | import Test.QuickCheck
  | ^^^^^^^^^^^^^^^^^^^^^^
Failed, 0 modules loaded.

I think this is another instance of a nasty bug in the full release of the 8.2.1 Haskell-Platform binaries. 我认为这是完整版8.2.1 Haskell-Platform二进制文件中另一个令人讨厌的错误的实例。

The solution is either to force reinstalls of the broken things, or simply to upgrade to the fixed release. 解决方案是强制重新安装损坏的东西,或者只是升级到固定版本。 More details were provided here: https://mail.haskell.org/pipermail/haskell-cafe/2017-October/127979.html 此处提供了更多详细信息: https : //mail.haskell.org/pipermail/haskell-cafe/2017-October/127979.html

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

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