putlenses-0.1.3: Put-based lens library

Copyright(C) 2013 Hugo Pacheco
LicenseBSD-style (see the file LICENSE)
MaintainerHugo Pacheco <hpacheco@nii.ac.jp>
Stabilityprovisional
Safe HaskellNone
LanguageHaskell98

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 -> Property Source

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

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

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

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

QuickCheck procedure to test if a lens satisfies the PutGet law (partial).

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

QuickCheck procedure to test if a lens satisfies the PutGet law (partial).