Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

installed QuickCheck,

i install again cabal install QuickCheck-1.2.0.0

and load again 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!!

like image 505
Jo0o0 Avatar asked Dec 02 '22 02:12

Jo0o0


2 Answers

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.

like image 109
sclv Avatar answered Dec 20 '22 00:12

sclv


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.

like image 20
Thomas M. DuBuisson Avatar answered Dec 19 '22 23:12

Thomas M. DuBuisson