Same as throwCryptoErrorIO but throw the error asynchronously.
Modulecrypton-1.0.4Haskell2010
Crypto.Error
- 2 types
- 5 values
- Packagecrypton-1.0.4
- Exports7
- LanguageHaskell2010
- LicenceBSD-3-Clause
- SourceTypes.hs
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 crypton-1.0.4 · Crypto.Error.TypesEq CryptoErrorDefined in crypton-1.0.4 · Crypto.Error.TypesData CryptoErrorDefined in crypton-1.0.4 · Crypto.Error.TypesShow CryptoErrorDefined in crypton-1.0.4 · Crypto.Error.TypesException CryptoErrorDefined in crypton-1.0.4 · 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 crypton-1.0.4 · Crypto.Error.TypesFunctor CryptoFailableDefined in crypton-1.0.4 · Crypto.Error.TypesApplicative CryptoFailableDefined in crypton-1.0.4 · Crypto.Error.TypesMonadFailure CryptoFailableDefined in crypton-1.0.4 · Crypto.Error.TypesEq a => Eq (CryptoFailable a)Defined in crypton-1.0.4 · Crypto.Error.TypesShow a => Show (CryptoFailable a)Defined in crypton-1.0.4 · Crypto.Error.Typestype Failure CryptoFailable = CryptoErrorDefined in crypton-1.0.4 · Crypto.Error.Types
Throw an CryptoError as exception on CryptoFailed result, otherwise return the computed value
Simple either like combinator for CryptoFailable type
Transform a CryptoFailable to an Either
Transform a CryptoFailable to a Maybe