Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data TryFromException source target = TryFromException source (Maybe SomeException)
Documentation
data TryFromException source target Source #
This exception is thrown when a TryFrom
conversion fails. It has the
original source
value that caused the failure and it knows the target
type it was trying to convert into. It also has an optional
SomeException
for communicating what went wrong while
converting.
TryFromException source (Maybe SomeException) |
Instances
(Show source, Typeable source, Typeable target) => Show (TryFromException source target) Source # | |
Defined in Witch.TryFromException showsPrec :: Int -> TryFromException source target -> ShowS # show :: TryFromException source target -> String # showList :: [TryFromException source target] -> ShowS # | |
(Show source, Typeable source, Typeable target) => Exception (TryFromException source target) Source # | |
Defined in Witch.TryFromException toException :: TryFromException source target -> SomeException # fromException :: SomeException -> Maybe (TryFromException source target) # displayException :: TryFromException source target -> String # | |
From (TryFromException source oldTarget) (TryFromException source newTarget) Source # | Uses |
Defined in Witch.Instances from :: TryFromException source oldTarget -> TryFromException source newTarget Source # |