开发者

It is a member of the hidden packageQuickCheck-1.2.0.0, How to load hs file

开发者 https://www.devze.com 2023-02-26 03:50 出处:网络
installed QuickCheck, i install againcabal install QuickCheck-1.2.0.0 and load ag开发者_如何学运维ain and has error

installed QuickCheck,

i install again cabal install QuickCheck-1.2.0.0

and load ag开发者_如何学运维ain and has error

Could not find module Test.QuickCheck.Batch': It is a member of the hidden packageQuickCheck-1.2.0.0'.

It is hidden package, How to do?

ghc -o tryprog hello.hs -package QuickCheck-1.2.0.0 : cannot satisfy -package QuickCheck-1.2.0.0 (use -v for more information)

besides this error, how to load .hs file with package quickcheck-1.2.0.0?

added 50 points for this question

I sincerely beg for your help on this loading problem!!


You can hide or expose packages with the ghc-pkg command as in ghc-pkg expose QuickCheck-1.2.0.0 and ghc-pkg hide QuickCheck-2.4 and etc.


Test.QuickCheck.Batch is a quickcheck version 1.x module and you likely installed a more recent, 2.x, version of quickcheck. As usual, you can find the documentation on hackage.


According to the GHC user's guide you use -package when compiling to specify a package name. According to the error you are getting you should specify '-package QuickCheck-1.2.0.0'.

0

精彩评论

暂无评论...
验证码 换一张
取 消