Module

Test.QuickCheck.Laws.Data.Functor

Package
purescript-quickcheck-laws
Repository
purescript-contrib/purescript-quickcheck-laws

#checkFunctor Source

checkFunctor :: forall f. Functor f => Arbitrary (f A) => Eq (f A) => Proxy f -> Effect Unit
  • Identity: (<$>) id = id
  • Composition: (<$>) (f <<< g) = (f <$>) <<< (g <$>)

#checkFunctorGen Source

checkFunctorGen :: forall f. Functor f => Eq (f A) => Gen (f A) -> Effect Unit