Copyright | © 2018-2021 IOHK |
---|---|
License | Apache-2.0 |
Safe Haskell | None |
Language | Haskell2010 |
Utility functions for internal use of the library.
Synopsis
- orElse :: Either e a -> Either e a -> Either e a
-
newtype
WithErrorMessage
e =
WithErrorMessage
{
- withErrorMessage :: e
- data DeserialiseFailure = DeserialiseFailure ByteOffset String
Documentation
newtype WithErrorMessage e Source #
Instances
( Exception e, Generic e, GToJSON Zero ( Rep e)) => ToJSON ( WithErrorMessage e) Source # | |
Defined in Cardano.Address.Internal toJSON :: WithErrorMessage e -> Value Source # toEncoding :: WithErrorMessage e -> Encoding Source # toJSONList :: [ WithErrorMessage e] -> Value Source # toEncodingList :: [ WithErrorMessage e] -> Encoding Source # |
data DeserialiseFailure Source #
An exception type that may be returned (by pure functions) or thrown (by IO actions) that fail to deserialise a given input.
Since: cborg-0.2.0.0
Instances
Eq DeserialiseFailure | |
Defined in Codec.CBOR.Read (==) :: DeserialiseFailure -> DeserialiseFailure -> Bool Source # (/=) :: DeserialiseFailure -> DeserialiseFailure -> Bool Source # |
|
Show DeserialiseFailure | |
Defined in Codec.CBOR.Read |
|
ToJSON DeserialiseFailure Source # | |
Defined in Cardano.Address.Internal toJSON :: DeserialiseFailure -> Value Source # toEncoding :: DeserialiseFailure -> Encoding Source # toJSONList :: [ DeserialiseFailure ] -> Value Source # toEncodingList :: [ DeserialiseFailure ] -> Encoding Source # |
|
Exception DeserialiseFailure | |
Defined in Codec.CBOR.Read |
|
NFData DeserialiseFailure | |
Defined in Codec.CBOR.Read rnf :: DeserialiseFailure -> () Source # |
Orphan instances
ToJSON DeserialiseFailure Source # | |
toJSON :: DeserialiseFailure -> Value Source # toEncoding :: DeserialiseFailure -> Encoding Source # toJSONList :: [ DeserialiseFailure ] -> Value Source # toEncodingList :: [ DeserialiseFailure ] -> Encoding Source # |