abides-0.0.1: Simple boolean tests to see if a value abides by certain properties

Safe HaskellSafe
LanguageHaskell2010

Test.Abides.Control.Alternative

Synopsis

Documentation

distributive :: Alternative f => Applicative f => Eq (f b) => f a -> f (a -> b) -> f (a -> b) -> Bool Source #

(f | g) * x == (f * x) | (g | x)

annihilation :: Alternative f => Applicative f => Eq (f b) => f (a -> b) -> Bool Source #

empty * x == empty