Transform a CryptoFailable to an Either
Modulecryptonite-0.30Haskell2010
Crypto.Error
- 2 types
- 5 values
- Packagecryptonite-0.30
- Exports7
- LanguageHaskell2010
- LicenceBSD-3-Clause
- SourceTypes.hs
Transform a CryptoFailable to a Maybe
Simple either like combinator for CryptoFailable type
Same as throwCryptoErrorIO but throw the error asynchronously.
Throw an CryptoError as exception on CryptoFailed result, otherwise return the computed value
Enumeration of all possible errors that can be found in this library
CryptoError_KeySizeInvalidCryptoError_IvSizeInvalidCryptoError_SeedSizeInvalidCryptoError_AEADModeNotSupportedCryptoError_SecretKeySizeInvalidCryptoError_SecretKeyStructureInvalidCryptoError_PublicKeySizeInvalidCryptoError_SharedSecretSizeInvalidCryptoError_EcScalarOutOfBoundsCryptoError_PointSizeInvalidCryptoError_PointFormatInvalidCryptoError_PointFormatUnsupportedCryptoError_PointCoordinatesInvalidCryptoError_ScalarMultiplicationInvalidCryptoError_MacKeyInvalidCryptoError_AuthenticationTagSizeInvalidCryptoError_PrimeSizeInvalidCryptoError_SaltTooSmallCryptoError_OutputLengthTooSmallCryptoError_OutputLengthTooBig
Instances5Enum, Eq, Data, Show, Exception
Enum CryptoErrorDefined in cryptonite-0.30 · Crypto.Error.TypesEq CryptoErrorDefined in cryptonite-0.30 · Crypto.Error.TypesData CryptoErrorDefined in cryptonite-0.30 · Crypto.Error.TypesShow CryptoErrorDefined in cryptonite-0.30 · Crypto.Error.TypesException CryptoErrorDefined in cryptonite-0.30 · Crypto.Error.Types
A simple Either like type to represent a computation that can fail
2 possibles values are:
CryptoPassed : The computation succeeded, and contains the result of the computation
CryptoFailed : The computation failed, and contains the cryptographic error associated
Constructors
Instances7Monad, Functor, Applicative, MonadFailure, Eq, Show, …
Monad CryptoFailableDefined in cryptonite-0.30 · Crypto.Error.TypesFunctor CryptoFailableDefined in cryptonite-0.30 · Crypto.Error.TypesApplicative CryptoFailableDefined in cryptonite-0.30 · Crypto.Error.TypesMonadFailure CryptoFailableDefined in cryptonite-0.30 · Crypto.Error.TypesEq a => Eq (CryptoFailable a)Defined in cryptonite-0.30 · Crypto.Error.TypesShow a => Show (CryptoFailable a)Defined in cryptonite-0.30 · Crypto.Error.Typestype Failure CryptoFailable = CryptoErrorDefined in cryptonite-0.30 · Crypto.Error.Types