Module

Halogen.Datepicker.Internal.Constraint

Package
purescript-halogen-datepicker
Repository
slamdata/purescript-halogen-datepicker

#showError Source

#Constraint Source

type Constraint a = a -> V (Array Error) Unit

#runConstraint Source

runConstraint :: forall g a. Constraint (g a) -> g a -> Array String

#allowedValues Source

allowedValues :: forall a g. Foldable g => (a -> String) -> Array (EqPred a) -> Constraint (g a)

#notEmpty Source

notEmpty :: forall a f. Foldable f => Constraint (f a)

#Sorting Source

#sorted Source

sorted :: forall a f. Ord a => Foldable f => Sorting -> Constraint (f a)

#allowNoneOrOne Source

allowNoneOrOne :: forall a g. Foldable g => Array (EqPred a) -> Constraint (g a)

#allowNoneOrAll Source

allowNoneOrAll :: forall a f. Foldable f => Array (EqPred a) -> Constraint (f a)

#matchesAny Source

matchesAny :: forall a. a -> Array (EqPred a) -> Boolean

#usageCount Source

usageCount :: forall a f. Foldable f => Array (EqPred a) -> f a -> Int

#EqPred Source

data EqPred a

Constructors

Instances

#equals Source

equals :: forall a. a -> EqPred a -> Boolean

#reShow Source

reShow :: forall a. Eq a => (a -> String) -> a -> EqPred a

#pred Source

pred :: forall a. Eq a => Show a => a -> EqPred a