Module

Test.QuickCheck.Laws.Data.Foldable

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

#checkFoldable Source

checkFoldable :: forall f. Foldable f => Arbitrary (f A) => Proxy f -> Effect Unit
  • foldr: foldr = foldrDefault
  • foldl: foldl = foldlDefault

#checkFoldableGen Source

checkFoldableGen :: forall f. Foldable f => Gen (f A) -> Effect Unit

#checkFoldableFunctor Source

checkFoldableFunctor :: forall f. Foldable f => Functor f => Arbitrary (f A) => Proxy f -> Effect Unit

foldMap: foldMap = fold <<< map

#checkFoldableFunctorGen Source

checkFoldableFunctorGen :: forall f. Foldable f => Functor f => Gen (f A) -> Effect Unit