I use cabal to install QuickCheck in a sandbox environment and it looks good
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
But when I open a file, it shows
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
How can I fix it?