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