purescript-arb-instances

Arbitrary and CoArbitrary instances for core data types


Keywords
purescript
Install
bower install purescript-arb-instances

Documentation

Module Documentation

Module Test.QuickCheck.Either

TestEither

newtype TestEither a b
  = TestEither (Either a b)

runTestEither

runTestEither :: forall a b. TestEither a b -> Either a b

arbEither

instance arbEither :: (Arbitrary a, Arbitrary b) => Arbitrary (TestEither a b)

showTestEither

instance showTestEither :: (Show a, Show b) => Show (TestEither a b)

eqTestEither

instance eqTestEither :: (Eq a, Eq b) => Eq (TestEither a b)

ordTestEither

instance ordTestEither :: (Ord a, Ord b) => Ord (TestEither a b)

functorTestEither

instance functorTestEither :: Functor (TestEither a)

applyTestEither

instance applyTestEither :: Apply (TestEither a)

applicativeTestEither

instance applicativeTestEither :: Applicative (TestEither a)

bindTestEither

instance bindTestEither :: Bind (TestEither a)

monadTestEither

instance monadTestEither :: Monad (TestEither a)

Module Test.QuickCheck.Maybe

TestMaybe

newtype TestMaybe a
  = TestMaybe (Maybe a)

runTestMaybe

runTestMaybe :: forall a. TestMaybe a -> Maybe a

arbMaybe

instance arbMaybe :: (Arbitrary a) => Arbitrary (TestMaybe a)

showTestMaybe

instance showTestMaybe :: (Show a, Show b) => Show (TestMaybe a)

eqTestMaybe

instance eqTestMaybe :: (Eq a) => Eq (TestMaybe a)

ordTestMaybe

instance ordTestMaybe :: (Ord a) => Ord (TestMaybe a)

functorTestMaybe

instance functorTestMaybe :: Functor TestMaybe

applyTestMaybe

instance applyTestMaybe :: Apply TestMaybe

applicativeTestMaybe

instance applicativeTestMaybe :: Applicative TestMaybe

altTestMaybe

instance altTestMaybe :: Alt TestMaybe

plusTestMaybe

instance plusTestMaybe :: Plus TestMaybe

alternativeTestMaybe

instance alternativeTestMaybe :: Alternative TestMaybe

bindTestMaybe

instance bindTestMaybe :: Bind TestMaybe

monadTestMaybe

instance monadTestMaybe :: Monad TestMaybe

monadPlusTestMaybe

instance monadPlusTestMaybe :: MonadPlus TestMaybe

Module Test.QuickCheck.Tuple

TestTuple

newtype TestTuple a b
  = TestTuple (Tuple a b)

runTestTuple

runTestTuple :: forall a b. TestTuple a b -> Tuple a b

arbTuple

instance arbTuple :: (Arbitrary a, Arbitrary b) => Arbitrary (TestTuple a b)

showTestTuple

instance showTestTuple :: (Show a, Show b) => Show (TestTuple a b)

eqTestTuple

instance eqTestTuple :: (Eq a, Eq b) => Eq (TestTuple a b)

ordTestTuple

instance ordTestTuple :: (Ord a, Ord b) => Ord (TestTuple a b)

functorTestTuple

instance functorTestTuple :: Functor (TestTuple a)

applyTestTuple

instance applyTestTuple :: (Semigroup a) => Apply (TestTuple a)

applicativeTestTuple

instance applicativeTestTuple :: (Monoid a) => Applicative (TestTuple a)

bindTestTuple

instance bindTestTuple :: (Semigroup a) => Bind (TestTuple a)

monadTestTuple

instance monadTestTuple :: (Monoid a) => Monad (TestTuple a)