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 a Listable
instance for function enumeration by means
of a FunListable
typeclass (similar to CoListable
).
This module does not currently work, it it just a sketch and a stub.
Synopsis
- class FunListable a where
Documentation
class FunListable a where Source #
This typeclass _does not currently work_. It is a stub and a sketch.
FunListable
is similar to CoListable
but a bit more complex to avoid
some repetitions.
validResults :: a -> [b] -> Bool Source #
invalidResults :: a -> [b] -> Bool Source #
Instances
FunListable Bool Source # | |
FunListable Int Source # | |
FunListable () Source # | |
Defined in Test.LeanCheck.Function.Listable.FunListable | |
FunListable Nat3 Source # | |
FunListable Nat2 Source # | |
FunListable Nat Source # | |
FunListable a => FunListable [a] Source # | |
Defined in Test.LeanCheck.Function.Listable.FunListable | |
FunListable a => FunListable (Maybe a) Source # | |
(FunListable a, FunListable b) => FunListable (Either a b) Source # | |
(FunListable a, FunListable b) => FunListable (a, b) Source # | |
Defined in Test.LeanCheck.Function.Listable.FunListable |