Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Extensions |
|
Documentation
withSource :: source2 -> TryFromException source1 t -> TryFromException source2 t #
withTarget :: forall target2 source target1. TryFromException source target1 -> TryFromException source target2 #
Instances
tryFrom
Instances
TryFrom Rational FeeRate Source # | |
Defined in BtcLsp.Data.Type | |
TryFrom NodeUri NodeUriHex Source # | |
Defined in BtcLsp.Data.Type | |
TryFrom ByteString SigHeaderName Source # | |
Defined in BtcLsp.Grpc.Data | |
TryFrom NodePubKey NodePubKeyHex Source # | |
Defined in BtcLsp.Data.Type | |
TryFrom BlockHeight BlkHeight Source # | |
Defined in BtcLsp.Data.Type tryFrom :: BlockHeight -> Either (TryFromException BlockHeight BlkHeight) BlkHeight | |
TryFrom Integer (Vout 'Funding) Source # | |
Defined in BtcLsp.Data.Orphan | |
ToBackendKey SqlBackend a => TryFrom Natural (Key a) Source # | |
Defined in BtcLsp.Data.Orphan | |
TryFrom Rational (Money owner btcl mrel) Source # | |
Defined in BtcLsp.Data.Type | |
TryFrom Natural (Money owner btcl mrel) Source # | |
Defined in BtcLsp.Data.Type | |
ToBackendKey SqlBackend a => TryFrom (Key a) Natural Source # | |
Defined in BtcLsp.Data.Orphan | |
TryFrom (Ratio Natural) (Money owner btcl mrel) Source # | |
Defined in BtcLsp.Data.Type |
data TryFromException source target #
TryFromException source (Maybe SomeException) |
Instances
(Show source, Typeable source, Typeable target) => Exception (TryFromException source target) | |
Defined in Witch.TryFromException toException :: TryFromException source target -> SomeException # fromException :: SomeException -> Maybe (TryFromException source target) # displayException :: TryFromException source target -> String # | |
(Show source, Typeable source, Typeable target) => Show (TryFromException source target) | |
Defined in Witch.TryFromException showsPrec :: Int -> TryFromException source target -> ShowS # show :: TryFromException source target -> String # showList :: [TryFromException source target] -> ShowS # |
from :: forall source target. (From source target, 'False ~ (source == target)) => source -> target Source #
into :: forall target source. (From source target, 'False ~ (source == target)) => source -> target Source #
via :: forall through source target. (From source through, From through target, 'False ~ (source == through), 'False ~ (through == target)) => source -> target Source #
tryFrom :: forall source target. (TryFrom source target, 'False ~ (source == target)) => source -> Either (TryFromException source target) target Source #
tryVia :: forall through source target. (TryFrom source through, TryFrom through target, 'False ~ (source == through), 'False ~ (through == target)) => source -> Either (TryFromException source target) target Source #
composeTry :: forall through source target. ('False ~ (source == through), 'False ~ (through == target)) => (through -> Either (TryFromException through target) target) -> (source -> Either (TryFromException source through) through) -> source -> Either (TryFromException source target) target Source #
composeTryRhs :: forall through source target. ('False ~ (source == through), 'False ~ (through == target)) => (through -> target) -> (source -> Either (TryFromException source through) through) -> source -> Either (TryFromException source target) target Source #
composeTryLhs :: forall through source target. ('False ~ (source == through), 'False ~ (through == target)) => (through -> Either (TryFromException through target) target) -> (source -> through) -> source -> Either (TryFromException source target) target Source #