open-witness-0.4.0.1: open witnesses

Safe HaskellNone
LanguageHaskell2010

Data.OpenWitness.Exception

Synopsis

Documentation

data Exn e Source #

A key to match exceptions. The type variable is the data the exception carries.

Instances

TestEquality * Exn Source # 

Methods

testEquality :: f a -> f b -> Maybe ((Exn :~: a) b) #

declexn :: TypeQ -> Q Exp Source #

Template Haskell function to declare Exn exception keys.

throw :: Exn e -> e -> a Source #

catch :: IO a -> Exn e -> (e -> IO a) -> IO a Source #