Common QuickCheck instances for Haskell Platform types
open sourceBSD-3-Clausefree
quickcheck-instances supplies QuickCheck instances (Arbitrary and friends) for the types in the Haskell Platform's common libraries, so property tests over those types work without writing generators. The instances are orphans, so its maintainers recommend using it in test suites and applications rather than inside a library. It's maintained by Oleg Grenrus in the haskellari organisation.
Problems it solves
- get Arbitrary instances for Text, Map and other common Haskell types
- property-test Haskell code using containers and text types
- avoid writing QuickCheck generators for standard library types
Features
- QuickCheck instances for common Haskell library types
- no hand-written generators for standard types
Limitations
- The instances are orphans: avoid using it inside a library module, so they aren't imposed on downstream code.1
Alternatives
The same job
These do what quickcheck-instances does.
- QuickCheck Haskell library for property-based testing: check properties against randomly generated inputs
- Hedgehog Property-based testing for Haskell with integrated shrinking
