Safe Haskell | None |
---|---|
Language | Haskell2010 |
Generic implementation of a generator. Example usage:
data Foo = Foo { _fooX :: X , _fooY :: Y } deriving (Generic) genFoo :: Gen Foo genFoo = hgen
The generated generator is equivalent to
Foo <$> hgen <*> hgen
.
Documentation
A class used to generate generators for types implementing Generic
.