我在我的文件的頂部進口快速檢查:找不到模塊'Test.QuickCheck」在Ubuntu
import Test.QuickCheck
...
編譯與ghc Lab1.hs
文件給了我這個錯誤:
Lab1.hs:1:8:
Could not find module `Test.QuickCheck'
Use -v to see a list of the files searched for.
Failed, modules loaded: none.
我嘗試了一個apt-cache搜索quickcheck
,並得到了一個可怕的軟件包列表。試圖安裝libghc-test-framework-dev
只是因爲我認爲這個名字看起來合適,但錯誤仍然存在。
如何安裝QuickCheck模塊?
知Debian的命名方式,我猜'libghc-QuickCheck- dev',但我沒有這樣的機器,方便檢查。 –
瞭解Debian的人爲驅動RPC方案(網站)後,我發現['libghc-quickcheck2-dev'](http://packages.debian.org/wheezy/libghc-quickcheck2-dev),但我沒有這樣的機器很方便安裝。 –