inline-c-cpp-0.5.0.0: Lets you embed C++ code into Haskell.
Safe HaskellNone
LanguageHaskell2010

Language.C.Inline.Cpp.Exceptions

Description

Deprecated: Language.C.Inline.Cpp.Exceptions is deprecated in favor of Language.C.Inline.Cpp.Exception which changes the CppException data type to preserve the exception for custom error handling.

Synopsis

Documentation

throwBlock :: QuasiQuoter Source #

Like tryBlock, but will throw unwrapped CppHaskellExceptions or other CppExceptions rather than returning them in an Either

tryBlock :: QuasiQuoter Source #

Similar to block, but C++ exceptions will be caught and the result is (Either CppException value). The return type must be void or constructible with {}. Using this will automatically include exception, cstring and cstdlib.

catchBlock :: QuasiQuoter Source #

Variant of throwBlock for blocks which return void.