hercules-ci-cnix-store-0.3.1.0: Haskell bindings for Nix's libstore
Safe HaskellSafe-Inferred
LanguageHaskell2010

Hercules.CNix.Exception

Synopsis

Documentation

handleExceptions :: IO a -> IO a Source #

Log C++ exceptions and call exitWith the way Nix would exit when an exception occurs.

handleExceptions' Source #

Arguments

:: (ExitCode -> IO a)

What to do when Nix would want to exit with ExitCode

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