I'm on macOS running stack/GHCi version 8.4.3:
import Test.QuickCheck
fails at both the GHCi prompt and in my .hs files. Either way I'm told it's not found.
GHCi Prelude>
<no location info>: error:
Could not find module ‘Test.QuickCheck’
It is not a module in the current program, or in any known package.
in .hs file >
"Could not find module ‘Test.QuickCheck’ '
The source code is on this page but I'm not sure how to install a new package into stack manually. From my brief reading when I googled "install Haskell package" it suggests installing a cabal package universally is a bad idea. Not sure this is a cabal package, and in any case it would be good to be able to import it for any project I think in my case.
cabal
, socabal install QuickCheck
. – Willem Van Onsemstack new
and then add packages to the project configuration files. There's a few alternative ways to do this, so consult the documentation. – Mark Seemanncabal install QuickCheck
is exactly the thing your "bad idea" link is warning against. – Daniel Wagner