Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- toplevelExceptionHandler ∷ IO a → IO a
Documentation
toplevelExceptionHandler ∷ IO a → IO a Source #
An exception handler to use for a program top level, as an alternative to the default top level handler provided by GHC.
Use like:
main :: IO () main = toplevelExceptionHandler $ do ...