genvalidity-containers-0.8.0.2: GenValidity support for containers
Safe HaskellNone
LanguageHaskell2010

Data.GenValidity.Tree

Synopsis

Documentation

genTreeOf :: Gen a -> Gen (Tree a) Source #

Generate a tree of values that are generated as specified.

This takes the size parameter much better into account

Orphan instances

(GenUnchecked a, GenInvalid a) => GenInvalid (Tree a) Source #

There should be at least one invalid element, either it's here or it's further down the tree.

Instance details

Methods

genInvalid :: Gen (Tree a)

shrinkInvalid :: Tree a -> [Tree a]

GenUnchecked a => GenUnchecked (Tree a) Source # 
Instance details

Methods

genUnchecked :: Gen (Tree a)

shrinkUnchecked :: Tree a -> [Tree a]

GenValid a => GenValid (Tree a) Source # 
Instance details

Methods

genValid :: Gen (Tree a)

shrinkValid :: Tree a -> [Tree a]