Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Documentation
(*||*) :: ValidationRule a -> ValidationRule a -> ValidationRule a infixl 6 Source #
(|??|) :: Maybe a -> ValidationRule a -> ValidationResult infixl 8 Source #
(|?|) :: a -> ValidationRule a -> ValidationResult infixl 8 Source #
type ValidationResult = Validation [ErrMsg] Source #
newtype ValidationRule a Source #
Instances
Monoid (ValidationRule a) Source # | |
Defined in Keuringsdienst mempty :: ValidationRule a # mappend :: ValidationRule a -> ValidationRule a -> ValidationRule a # mconcat :: [ValidationRule a] -> ValidationRule a # | |
Semigroup (ValidationRule x) Source # | |
Defined in Keuringsdienst (<>) :: ValidationRule x -> ValidationRule x -> ValidationRule x # sconcat :: NonEmpty (ValidationRule x) -> ValidationRule x # stimes :: Integral b => b -> ValidationRule x -> ValidationRule x # |
data Validation err Source #
Instances
keuren :: a -> ValidationRule a -> ValidationResult Source #
misschienKeuren :: Maybe a -> ValidationRule a -> ValidationResult Source #
validate :: a -> ValidationRule a -> ValidationResult Source #
maybeValidate :: Maybe a -> ValidationRule a -> ValidationResult Source #
ofDitOfDat :: ValidationRule a -> ValidationRule a -> ValidationRule a Source #