Hoogle Search
Within LTS Haskell 24.24 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
validation :: (e -> c) -> (a -> c) -> Validation e a -> cvalida-base Valida Case analysis for Validation, i.e catamorphism. In case of 'Failure e', apply the first function to e; in case of 'Success a', apply the second function to a. This is a more generalized version of the bifoldMap implementation.
Examples
>>> validation (const Nothing) Just (Success 'c' :: Validation String Char) Just 'c' >>> validation (const Nothing) Just (Failure "error" :: Validation String Char) Nothing
-
A data-type like Either but with an accumulating Applicative A data-type like Either but with differing properties and type-class instances. Library support is provided for this different representation, include lens-related functions for converting between each and abstracting over their similarities.
The Validation data type is isomorphic to Either, but has an instance of Applicative that accumulates on the error side. That is to say, if two (or more) errors are encountered, they are appended using a Semigroup operation. As a consequence of this Applicative instance, there is no corresponding Bind or Monad instance. Validation is an example of, "An applicative functor that is not a monad." validation :: (e -> c) -> (a -> c) -> Validation e a -> cvalidation Data.Validation validation is the catamorphism for Validation.
validation :: TemplateParameter -> Maybe ParameterValidationgogol-dataproc Gogol.Dataproc Optional. Validation rules to be applied to this parameter's value.
validation :: TemplateParameter -> Maybe ParameterValidationgogol-dataproc Gogol.Dataproc.Types Optional. Validation rules to be applied to this parameter's value.
-
validity Data.Validity No documentation available.
-
tls Network.TLS All the callbacks needed for querying and adding to the cache.
ValidationCache :: ValidationCacheQueryCallback -> ValidationCacheAddCallback -> ValidationCachetls Network.TLS No documentation available.
type
ValidationCacheAddCallback = ServiceID -> Fingerprint -> Certificate -> IO ()tls Network.TLS Validation cache callback type
ValidationCacheDenied :: String -> ValidationCacheResulttls Network.TLS cache denied this fingerprint for further validation