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.
data
Validation (m :: Type -> Type)graphql Language.GraphQL.Validate.Validation Validation rule context.
Validation :: Document -> Schema m -> Validation (m :: Type -> Type)graphql Language.GraphQL.Validate.Validation No documentation available.
module PostgresqlSyntax.
Validation No documentation available.
-
Lightweight pure data validation based on Applicative and Selective functors. Validation allows to accumulate all errors instead of short-circuting on the first error so you can display all possible errors at once. Common use-cases include:
- Validating each input of a form with multiple inputs.
- Performing multiple validations of a single value.
- Semigroup: accumulate both Failure and Success with <>.
- Monoid: Success that stores mempty.
- Functor: change the type inside Success.
- Bifunctor: change both Failure and Success.
- Applicative: apply function to values inside Success and accumulate errors inside Failure.
- Alternative: return the first Success or accumulate all errors inside Failure.
- Selective: choose which validations to apply based on the value inside.
-
validation-selective Validation Validation is a polymorphic sum type for storing either all validation failures or validation success. Unlike Either, which returns only the first error, Validation accumulates all errors using the Semigroup typeclass. Usually type variables in Validation e a are used as follows:
- e: is a list or set of failure messages or values of some error data type.
- a: is some domain type denoting successful validation result.
Validation [String] User
- Either list of String error messages or a validated value of a custom User type.
Validation (NonEmpty UserValidationError) User
- Similar to previous example, but list of failures guaranteed to be non-empty in case of validation failure, and it stores values of some custom error type.
-
No documentation available.
module Crypto.Noise.Internal.Handshake.
Validation No documentation available.
module Crypto.Noise.
Validation No documentation available.
module Configuration.Utils.
Validation Utilities for validating configuration values
-
No documentation available.