| Copyright | Daniel Mendler (c) 2016 |
|---|---|
| License | MIT (see the file LICENSE) |
| Maintainer | mail@daniel-mendler.de |
| Stability | experimental |
| Portability | portable |
| Safe Haskell | None |
| Language | Haskell2010 |
Test.QuickCheck.Special
Description
The standard Arbitrary instances don't generate special values.
This is fixed by this package which provides the newtype Special with an Arbitrary instance.
The special values are given by the SpecialValues typeclass.
Synopsis
- newtype Special a = Special {
- getSpecial :: a
- class SpecialValues a where
Documentation
Additionally to the standard Arbitrary instances, this generates special values with a small probability.
Constructors
| Special | |
Fields
| |
Instances
class SpecialValues a where #
Provides a list of special values or edge cases
Minimal complete definition