The latest version of less-arbitrary is 0.1.8.0-0.

less-arbitrary

Version 0.1.3.0 revision 0 uploaded by MichalGajda.

Package meta

Synopsis
Linear time testing with variant of Arbitrary class that always terminates.
Description

Ever found non-terminating Arbitrary instance? Ever wondered what would be a runtime cost of particular Arbitrary instance?

Never let it bother you again: this variant of Arbitrary is automatically generating instances, and allows you to see predictable linear time generators for most types (providing that you have any terminating constructor, that is constructor that does not go deeper into the data structure.)

Usage:

import Test.LessArbitrary

data MyDataType = ...
  deriving (Show, Generic)

instance LessArbitrary MyDataType
instance Arbitrary where
 arbitrary = fasterArbitrary
Author
Michał J. Gajda <mjgajda@migamake.com>
Bug reports
n/a
Category
Web
Copyright
n/a
Homepage
n/a
Maintainer
Michał J. Gajda <mjgajda@migamake.com>
Package URL
n/a
Stability
n/a

Components