-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | Lets you embed C++ code into Haskell. -- -- Utilities to inline C++ code into Haskell using inline-c. See tests -- for example on how to build. @package inline-c-cpp @version 0.2.1.0 -- | A module that contains exception-safe equivalents of inline-c -- QuasiQuoters. module Language.C.Inline.Cpp.Exceptions -- | An exception thrown in C++ code. data CppException CppStdException :: String -> CppException CppOtherException :: CppException -- | 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. catchBlock :: QuasiQuoter instance GHC.Show.Show Language.C.Inline.Cpp.Exceptions.CppException instance GHC.Classes.Ord Language.C.Inline.Cpp.Exceptions.CppException instance GHC.Classes.Eq Language.C.Inline.Cpp.Exceptions.CppException instance GHC.Exception.Exception Language.C.Inline.Cpp.Exceptions.CppException -- | Module exposing a Context to inline C++ code. We only have used -- this for experiments, so use with caution. See the C++ tests to see -- how to build inline C++ code. module Language.C.Inline.Cpp -- | The equivalent of baseCtx for C++. It specifies the -- .cpp file extension for the C file, so that g++ will decide -- to build C++ instead of C. See the .cabal test target for an -- example on how to build. cppCtx :: Context -- | Emits an using directive, e.g. -- --
--   C.using "namespace std" ==> using namespace std
--   
using :: String -> DecsQ