Safe Haskell | None |
---|---|
Language | Haskell2010 |
A module that contains exception-safe equivalents of inline-c
QuasiQuoters.
Synopsis
Documentation
data CppException Source #
An exception thrown in C++ code.
Instances
Eq CppException Source # | |
Defined in Language.C.Inline.Cpp.Exceptions (==) :: CppException -> CppException -> Bool # (/=) :: CppException -> CppException -> Bool # | |
Ord CppException Source # | |
Defined in Language.C.Inline.Cpp.Exceptions compare :: CppException -> CppException -> Ordering # (<) :: CppException -> CppException -> Bool # (<=) :: CppException -> CppException -> Bool # (>) :: CppException -> CppException -> Bool # (>=) :: CppException -> CppException -> Bool # max :: CppException -> CppException -> CppException # min :: CppException -> CppException -> CppException # | |
Show CppException Source # | |
Defined in Language.C.Inline.Cpp.Exceptions showsPrec :: Int -> CppException -> ShowS # show :: CppException -> String # showList :: [CppException] -> ShowS # | |
Exception CppException Source # | |
Defined in Language.C.Inline.Cpp.Exceptions |
throwBlock :: QuasiQuoter Source #
Like tryBlock
, but will throw CppException
s 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
.