inline-c-cpp-0.2.1.0: Lets you embed C++ code into Haskell.

Safe HaskellNone
LanguageHaskell2010

Language.C.Inline.Cpp.Exceptions

Description

A module that contains exception-safe equivalents of inline-c QuasiQuoters.

Synopsis

Documentation

catchBlock :: QuasiQuoter Source #

Similar to block, but C++ exceptions will be caught and rethrown as ForeignExceptions. Unlike block, the return type can only be void (and doesn't need to be specified), but you can use withPtr_ to extract a result yourself.

Using this will automatically include exception, cstring and cstdlib.