quickpull-0.2.0.0: Generate Main module with QuickCheck tests

Safe HaskellSafe-Inferred

Quickpull.Function

Description

Helpers to generate random functions.

Synopsis

Documentation

function :: (a -> Gen b -> Gen b) -> Gen b -> Gen (a -> b)Source

Generate a random function. This is simply a duplicate of what's in the QuickCheck Arbitrary instance for functions; having it here saves you from having to define Arbitrary and CoArbitrary instances for your types (which can require either orphan instances or a lot of annoying wrapping and unwrapping.)