Portability | Control.Exception |
---|---|
Stability | provisional |
Maintainer | Edward Kmett <ekmett@gmail.com> |
Safe Haskell | Trustworthy |
- exception :: Exception a => Simple Prism SomeException a
Documentation
exception :: Exception a => Simple Prism SomeException aSource
Traverse the strongly typed Exception
contained in SomeException
where the type of your function matches
the desired Exception
.
exception :: (Applicative
f,Exception
a,Exception
b) => (a -> f b) ->SomeException
-> fSomeException