Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- handleExceptions :: IO a -> IO a
- handleExceptions' :: (ExitCode -> IO a) -> Text -> IO a -> IO a
- handleExceptionPtr :: ByteString -> CppExceptionPtr -> IO CInt
Documentation
handleExceptions :: IO a -> IO a Source #
Log C++ exceptions and call exitWith
the way Nix would exit when an
exception occurs.
:: (ExitCode -> IO a) | What to do when Nix would want to exit with |
-> Text | Program name (command name) |
-> IO a | |
-> IO a |
Log C++ exceptions and call exitWith
the way Nix would exit.
handleExceptionPtr :: ByteString -> CppExceptionPtr -> IO CInt Source #
Low-level wrapper around nix::handleExceptions(rethrow_exception(e))
.