Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- newtype TryCastException source target = TryCastException source
Documentation
newtype TryCastException source target Source #
This exception is thrown when a TryCast
conversion fails. It has the
original source
value that caused the failure and it knows the target
type it was trying to convert into.
TryCastException source |
Instances
Eq source => Eq (TryCastException source target) Source # | |
Defined in Witch.TryCastException (==) :: TryCastException source target -> TryCastException source target -> Bool # (/=) :: TryCastException source target -> TryCastException source target -> Bool # | |
(Show source, Typeable source, Typeable target) => Show (TryCastException source target) Source # | |
Defined in Witch.TryCastException showsPrec :: Int -> TryCastException source target -> ShowS # show :: TryCastException source target -> String # showList :: [TryCastException source target] -> ShowS # | |
(Show source, Typeable source, Typeable target) => Exception (TryCastException source target) Source # | |
Defined in Witch.TryCastException toException :: TryCastException source target -> SomeException # fromException :: SomeException -> Maybe (TryCastException source target) # displayException :: TryCastException source target -> String # |