Copyright | (c) 2015-2018 Rudy Matela |
---|---|
License | 3-Clause BSD (see the file LICENSE) |
Maintainer | Rudy Matela <rudy@matela.com.br> |
Safe Haskell | None |
Language | Haskell2010 |
This module is part of LeanCheck, a simple enumerative property-based testing library.
This module exports functions to define a Listable
instance for function
enumeration by means of a CoListable
typeclass. This is very similar to
the coseries enumeration of SmallCheck.
This module does not currently work, it it just a sketch and a stub.
Synopsis
- class CoListable a where
Documentation
class CoListable a where Source #
This _does not currently work_. Its just a sketch and a stub.
Generation of Listable
functions using cotiers
.
This is similar to SmallCheck's coseries.
The current implementation generates repetitions.
Instances
CoListable Bool Source # | |
Defined in Test.LeanCheck.Function.CoListable | |
CoListable Int Source # | |
Defined in Test.LeanCheck.Function.CoListable | |
CoListable () Source # | |
Defined in Test.LeanCheck.Function.CoListable | |
CoListable Nat3 Source # | |
Defined in Test.LeanCheck.Function.CoListable | |
CoListable Nat2 Source # | |
Defined in Test.LeanCheck.Function.CoListable | |
CoListable Nat Source # | |
Defined in Test.LeanCheck.Function.CoListable | |
CoListable a => CoListable [a] Source # | |
Defined in Test.LeanCheck.Function.CoListable | |
CoListable a => CoListable (Maybe a) Source # | |
Defined in Test.LeanCheck.Function.CoListable | |
(CoListable a, CoListable b) => CoListable (Either a b) Source # | |
Defined in Test.LeanCheck.Function.CoListable | |
(CoListable a, CoListable b) => CoListable (a, b) Source # | |
Defined in Test.LeanCheck.Function.CoListable |