Module

Test.QuickCheck.Laws.Control.Alt

Package
purescript-quickcheck-laws
Repository
garyb/purescript-quickcheck-laws

#checkAlt Source

checkAlt :: forall f eff. Alt f => Arbitrary (f A) => Eq (f A) => Eq (f B) => Proxy2 f -> QC eff Unit
  • Associativity: (x <|> y) <|> z == x <|> (y <|> z)
  • Distributivity: f <$> (x <|> y) == (f <$> x) <|> (f <$> y)