putlenses-0.0.3: Put-based lens library

Stabilityprovisional
MaintainerHugo Pacheco <hpacheco@nii.ac.jp>
Safe HaskellNone

Generics.Putlenses.QuickCheck

Description

Quickcheck procedures to test the well-behavedness of partial lenses (and therefore putlenses)

Synopsis

Documentation

wb :: (Eq s, Eq v) => Lens s v -> s -> v -> PropertySource

QuickCheck procedure to test if a lens is well-behaved.

wbPartial :: (Eq s, Eq v) => (s -> Bool) -> (s -> v -> Bool) -> Lens s v -> s -> v -> PropertySource

QuickCheck procedure to test if a lens is well-behaved, taking as arguments particular domains for get and for put

putgetPartial :: Eq v => (s -> v -> Bool) -> Lens s v -> s -> v -> PropertySource

getputPartial :: Eq s => (s -> Bool) -> Lens s v -> s -> PropertySource