haskellquickcheck

Could not find module ‘Test.QuickCheck’ on Windows


My ghci version is 8.4.3

I tried

stack install QuickCheck

Something was installed. But when I input import Test.QuickCheck, it tells Could not find module ‘Test.QuickCheck’ again. How can I fix it?


Solution

  • Firstly, stack install is not recommended for installing executables or libraries. Instead, there's a couple of things you can do to use the QuickCheck library:

    The same guidance applies to any package you may want to use.