witch-0.2.0.1: 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. It also has an optional SomeException for communicating what went wrong while converting.

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 #

Converts via String.

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 #

Converts via String.

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 #

Uses show.

Instance details

Defined in Witch.Instances

Cast (TryCastException s u) (TryCastException s t) Source #

Uses coerce.

Instance details

Defined in Witch.Instances