Module

Classless.Arbitrary

Package
purescript-classless-arbitrary
Repository
thought2/purescript-classless-arbitrary

#Arbitrary Source

type Arbitrary a = Gen a

#additive Source

additive :: forall a. Arbitrary a -> Arbitrary (Additive a)

#array Source

array :: forall a. Arbitrary a -> Arbitrary (Array a)

#Record Source

class Record :: Row Type -> Row Type -> Constraintclass Record rspec r | r -> rspec where

Members

Instances

#Sum Source

class Sum :: Row Type -> Type -> Constraintclass Sum ri a | a -> ri where

Members

Instances

#conj Source

conj :: forall a. Arbitrary a -> Arbitrary (Conj a)

#disj Source

disj :: forall a. Arbitrary a -> Arbitrary (Disj a)

#dual Source

dual :: forall a. Arbitrary a -> Arbitrary (Dual a)

#either Source

either :: forall a b. Arbitrary a -> Arbitrary b -> Arbitrary (Either a b)

#first Source

first :: forall a. Arbitrary a -> Arbitrary (First a)

#identity Source

identity :: forall a. Arbitrary a -> Arbitrary (Identity a)

#last Source

last :: forall a. Arbitrary a -> Arbitrary (Last a)

#list Source

list :: forall a. Arbitrary a -> Arbitrary (List a)

#maybe Source

maybe :: forall a. Arbitrary a -> Arbitrary (Maybe a)

#multiplicative Source

#nonEmptyArray Source

#tuple Source

tuple :: forall a b. Arbitrary a -> Arbitrary b -> Arbitrary (Tuple a b)

#record' Source

record' :: forall rspec r. SequenceRecord rspec r Gen => Record rspec -> Arbitrary (Record r)

#GetCases Source

class GetCases :: Row Type -> Type -> Row Type -> Constraintclass GetCases (ri :: Row Type) (rep :: Type) (ro :: Row Type) | rep ri -> ro where

Members

Instances

#MapInl Source

data MapInl

Constructors

Instances

#MapInr Source

data MapInr

Constructors

Instances

#MapRepToA Source

data MapRepToA (a :: Type)

Constructors

Instances

#HomRecToNEA Source

class HomRecToNEA :: Row Type -> Type -> Constraintclass HomRecToNEA r a  where

Members

Instances