witch-0.2.0.0: Convert values from one type into another.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Witch.TryCastException

Synopsis

Documentation

data 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.

Constructors

TryCastException source (Maybe SomeException) 

Instances

Instances details
(Show source, Typeable source, Typeable target) => Show (TryCastException source target) Source # 
Instance details

Defined in Witch.TryCastException

Methods

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 # 
Instance details

Defined in Witch.TryCastException

(Show s, Typeable s, Typeable t) => Cast (TryCastException s t) Text Source # 
Instance details

Defined in Witch.Instances

Methods

cast :: TryCastException s t -> Text Source #

(Show s, Typeable s, Typeable t) => Cast (TryCastException s t) Text Source # 
Instance details

Defined in Witch.Instances

Methods

cast :: TryCastException s t -> Text Source #

(Show s, Typeable s, Typeable t) => Cast (TryCastException s t) String Source # 
Instance details

Defined in Witch.Instances

Cast (TryCastException s t0) (TryCastException s t1) Source # 
Instance details

Defined in Witch.Instances