bcc-cli-1.99.0
Safe HaskellSafe-Inferred
LanguageHaskell2010

Bcc.CLI.TopHandler

Synopsis

Documentation

toplevelExceptionHandlerIO 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
  ...