Module

Test.QuickCheck.Laws.Control.Monad

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

#checkMonad Source

checkMonad :: forall m. Monad m => Arbitrary (m A) => Eq (m A) => Proxy2 m -> Effect Unit
  • Left Identity: pure x >>= f = f x
  • Right Identity: x >>= pure = x