| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Test.Mutagen.Exception
Contents
Description
Exception handling utilities.
Synopsis
- type AnException = SomeException
- tryEvaluate :: a -> IO (Either AnException a)
- tryEvaluateIO :: IO a -> IO (Either AnException a)
- evaluate :: a -> IO a
- finally :: IO a -> IO b -> IO a
- discard :: a
- isDiscard :: AnException -> Bool
Exception handling utilities
type AnException = SomeException Source #
A general exception type.
tryEvaluate :: a -> IO (Either AnException a) Source #
Evaluate a value to weak head normal form, catching any exceptions.
tryEvaluateIO :: IO a -> IO (Either AnException a) Source #
Evaluate an IO action to weak head normal form, catching any exceptions.
finally :: IO a -> IO b -> IO a Source #
Ensure that a cleanup action is run after an IO action, even if an exception is thrown.