| Safe Haskell | Safe |
|---|---|
| Language | Haskell2010 |
Data.TypedEncoding.Common.Class.Validate
Synopsis
- class Validate f nm alg conf str where
- validation :: Validation f nm alg conf str
- class ValidateAll f nms algs conf str where
- validations :: Validations f nms algs conf str
- class RecreateErr f where
- recoveryErr :: RecreateEx -> f a
- asRecreateErr_ :: (RecreateErr f, Applicative f, Show err, KnownSymbol x) => Proxy x -> Either err a -> f a
- asRecreateErr :: forall x f err a. (RecreateErr f, Applicative f, Show err, KnownSymbol x) => Either err a -> f a
Documentation
class Validate f nm alg conf str where Source #
Methods
validation :: Validation f nm alg conf str Source #
Instances
class ValidateAll f nms algs conf str where Source #
Methods
validations :: Validations f nms algs conf str Source #
Instances
| ValidateAll f ([] :: [Symbol]) ([] :: [Symbol]) conf str Source # | |
Defined in Data.TypedEncoding.Common.Class.Validate Methods validations :: Validations f [] [] conf str Source # | |
| (ValidateAll f nms algs conf str, Validate f nm alg conf str) => ValidateAll f (nm ': nms) (alg ': algs) conf str Source # | |
Defined in Data.TypedEncoding.Common.Class.Validate Methods validations :: Validations f (nm ': nms) (alg ': algs) conf str Source # | |
class RecreateErr f where Source #
Recovery errors are expected unless Recovery allows Identity instance
Methods
recoveryErr :: RecreateEx -> f a Source #
Instances
| RecreateErr (Either RecreateEx) Source # | |
Defined in Data.TypedEncoding.Common.Class.Validate Methods recoveryErr :: RecreateEx -> Either RecreateEx a Source # | |
asRecreateErr_ :: (RecreateErr f, Applicative f, Show err, KnownSymbol x) => Proxy x -> Either err a -> f a Source #
asRecreateErr :: forall x f err a. (RecreateErr f, Applicative f, Show err, KnownSymbol x) => Either err a -> f a Source #