Module

Test.Abides.Control.Alternative

Package
purescript-abides
Repository
athanclark/purescript-abides

#distributive Source

distributive :: forall b a f. Alternative f => Applicative f => Eq (f b) => f a -> f (a -> b) -> f (a -> b) -> Boolean

(f <|> g) <> x == (f <> x) <|> (g <|> x)

#annihilation Source

annihilation :: forall b a f. Alternative f => Applicative f => Eq (f b) => f (a -> b) -> Boolean

empty <*> x == empty