constrained-generators-0.2.0.0: Framework for generating constrained random data using a subset of first order logic
Safe HaskellSafe-Inferred
LanguageHaskell2010

Constrained.Examples.Set

Documentation

setPairSpecSpecification BaseFn (Set Int, Set Int) Source #

eitherSimpleSetSpecSpecification BaseFn (Set (Either Int Int)) Source #

notSubsetSpecSpecification BaseFn (Set Int, Set Int) Source #

emptyEitherSpecSpecification BaseFn (Set (Either Int Int)) Source #

maybeSpecSpecification BaseFn (Set (Maybe Int)) Source #

eitherSetSpecSpecification BaseFn (Set (Either Int Int), Set (Either Int Int), Set (Either Int Int)) Source #

weirdSetPairSpecSpecification BaseFn ([Int], Set (Either Int Int)) Source #

setPairSpecification BaseFn (Set (Int, Int)) Source #

newtype NotASet a Source #

Constructors

NotASet (Set a) 

Instances

Instances details
(Ord a, HasSpec fn a) ⇒ HasSpec fn (NotASet a) Source # 
Instance details

Defined in Constrained.Examples.Set

Associated Types

type TypeSpec fn (NotASet a) Source #

type Prerequisites fn (NotASet a) Source #

Methods

emptySpecTypeSpec fn (NotASet a) Source #

combineSpecTypeSpec fn (NotASet a) → TypeSpec fn (NotASet a) → Specification fn (NotASet a) Source #

genFromTypeSpec ∷ ∀ (m ∷ Type → Type). (HasCallStack, MonadGenError m) ⇒ TypeSpec fn (NotASet a) → GenT m (NotASet a) Source #

conformsToNotASet a → TypeSpec fn (NotASet a) → Bool Source #

shrinkWithTypeSpecTypeSpec fn (NotASet a) → NotASet a → [NotASet a] Source #

toPredsTerm fn (NotASet a) → TypeSpec fn (NotASet a) → Pred fn Source #

cardinalTypeSpecTypeSpec fn (NotASet a) → Specification fn Integer Source #

cardinalTrueSpecSpecification fn Integer Source #

typeSpecHasErrorTypeSpec fn (NotASet a) → Maybe (NonEmpty String) Source #

alternateShowTypeSpec fn (NotASet a) → BinaryShow Source #

monadConformsToNotASet a → TypeSpec fn (NotASet a) → Writer [String] Bool Source #

typeSpecOptTypeSpec fn (NotASet a) → [NotASet a] → Specification fn (NotASet a) Source #

guardTypeSpec ∷ [String] → TypeSpec fn (NotASet a) → Specification fn (NotASet a) Source #

prerequisitesEvidence (Prerequisites fn (NotASet a)) Source #

Generic (NotASet a) Source # 
Instance details

Defined in Constrained.Examples.Set

Associated Types

type Rep (NotASet a) ∷ Type → Type

Methods

fromNotASet a → Rep (NotASet a) x

to ∷ Rep (NotASet a) x → NotASet a

Show a ⇒ Show (NotASet a) Source # 
Instance details

Defined in Constrained.Examples.Set

Methods

showsPrec ∷ Int → NotASet a → ShowS

showNotASet a → String

showList ∷ [NotASet a] → ShowS

Ord a ⇒ HasSimpleRep (NotASet a) Source # 
Instance details

Defined in Constrained.Examples.Set

Associated Types

type SimpleRep (NotASet a) Source #

type TheSop (NotASet a) ∷ [Type] Source #

Eq a ⇒ Eq (NotASet a) Source # 
Instance details

Defined in Constrained.Examples.Set

Methods

(==)NotASet a → NotASet a → Bool

(/=)NotASet a → NotASet a → Bool

Ord a ⇒ Forallable (NotASet a) a Source # 
Instance details

Defined in Constrained.Examples.Set

Methods

fromForAllSpec ∷ ∀ (fn ∷ [Type] → Type → Type). (HasSpec fn (NotASet a), HasSpec fn a, BaseUniverse fn) ⇒ Specification fn a → Specification fn (NotASet a) Source #

forAllToListNotASet a → [a] Source #

type Prerequisites fn (NotASet a) Source # 
Instance details

Defined in Constrained.Examples.Set

type Prerequisites fn (NotASet a) = ()
type TypeSpec fn (NotASet a) Source # 
Instance details

Defined in Constrained.Examples.Set

type TypeSpec fn (NotASet a) = TypeSpec fn (SimpleRep (NotASet a))
type Rep (NotASet a) Source # 
Instance details

Defined in Constrained.Examples.Set

type Rep (NotASet a) = D1 ('MetaData "NotASet" "Constrained.Examples.Set" "constrained-generators-0.2.0.0-inplace" 'True) (C1 ('MetaCons "NotASet" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Set a))))
type SimpleRep (NotASet a) Source # 
Instance details

Defined in Constrained.Examples.Set

type SimpleRep (NotASet a) = [a]
type TheSop (NotASet a) Source # 
Instance details

Defined in Constrained.Examples.Set

type TheSop (NotASet a) = SOPOf (Rep (NotASet a))

emptyListSpecSpecification BaseFn ([Int], NotASet (Either Int Int, Int)) Source #

complexUnionSpecification BaseFn (Set Int, Set Int) Source #