@hackage mangle0.1.0.1

Convert C++ type signatures to their mangled form

Converts C++ type signatures to mangled symbol names. This is useful for calling C++ functions via the FFI without using extern "C" { .. }.

The library can be used with Template Haskell, so you can call C++ code directly from Haskell, e.g.

{-# LANGUAGE TemplateHaskell #-}
...
import Mangle.TH
...
$(mangle
  "void glog_info(const char*, int, const char*)"
  [d|
    foreign import ccall
      c_glog_info :: CString -> CInt -> CString -> IO ()
  |])