Module

Test.QuickCheck.Laws.Control.MonadPlus

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

#checkMonadPlus Source

checkMonadPlus :: forall m. MonadPlus m => Arbitrary (m A) => Arbitrary (m B) => Eq (m B) => Proxy2 m -> Effect Unit
  • Distributivity: (x <|> y) >>= f == (x >>= f) <|> (y >>= f)