Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Synopsis
- class RecreateF f instr outstr where
- checkPrevF :: outstr -> f instr
- class Functor f => RecreateFAll f (xs :: [Symbol]) c str where
- recreateAll :: forall xs c str. RecreateFAll Identity xs c str => Enc '[] c str -> Enc xs c 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 RecreateF f instr outstr where Source #
Used to safely recover encoded data validating all encodingss
checkPrevF :: outstr -> f instr Source #
Instances
class Functor f => RecreateFAll f (xs :: [Symbol]) c str where Source #
checkFAll :: Enc xs c str -> f (Enc '[] c str) Source #
recreateFAll :: Enc '[] c str -> f (Enc xs c str) Source #
Instances
Applicative f => RecreateFAll f ([] :: [Symbol]) c str Source # | |
(Monad f, RecreateFAll f xs c str, RecreateF f (Enc xs c str) (Enc (x ': xs) c str)) => RecreateFAll f (x ': xs) c str Source # | |
recreateAll :: forall xs c str. RecreateFAll Identity xs c str => Enc '[] c str -> Enc xs c str Source #
class RecreateErr f where Source #
Recovery errors are expected unless Recovery allows Identity instance
recoveryErr :: RecreateEx -> f a Source #
Instances
RecreateErr (Either RecreateEx) Source # | |
Defined in Data.TypedEncoding.Internal.Class.Recreate 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 #