【发布时间】:2018-09-18 21:13:59
【问题描述】:
我使用cabal在沙盒环境中安装QuickCheck,看起来不错
C:\Users\yashi>cabal install QuickCheck
Resolving dependencies...
Notice: installing into a sandbox located at C:\Users\yashi\.cabal-sandbox
Downloading erf-2.0.0.0...
Downloading primitive-0.6.4.0...
Downloading random-1.1...
...
Installed QuickCheck-2.12.4
但是当我打开一个文件时,它会显示
C:\\Users\yashi\OneDrive\Desktop\Ex1.hs:24:1: error:
Could not find module ‘Test.QuickCheck’
Use -v to see a list of the files searched for.
|
24 | import Test.QuickCheck (Property, quickCheck, (==>))
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Failed, no modules loaded.
Prelude> import Test.QuickCheck
我该如何解决?
【问题讨论】:
标签: haskell quickcheck