Module

Test.StrongCheck.Laws.Control.Alt

Package
purescript-strongcheck-laws
Repository
garyb/purescript-strongcheck-laws

#checkAlt Source

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