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

Witch.TryCastException

Synopsis

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.

Constructors

TryCastException source 

Instances

Instances details
Eq source => Eq (TryCastException source target) Source # 
Instance details

Defined in Witch.TryCastException

Methods

(==) :: 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 # 
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

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

Defined in Witch.Instances