open-witness-0.3.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

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