cardano-cli
Safe HaskellSafe-Inferred
LanguageHaskell2010

Cardano.CLI.TopHandler

Synopsis

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