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

Safe HaskellNone



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.



cppCtx :: Context Source #

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.

using :: String -> DecsQ Source #

Emits an using directive, e.g.

C.using "namespace std" ==> using namespace std