logo
首页技术栈工具库讨论
cplusplus-th

cplusplus-th

cplusplus-th allows you to foreign import C++ functions that are compatible with the ccall calling convention. It also includes some standard library abstractions. [Index] For package maintainers and hackage trustees cplusplus-th allows you to foreign import C++ functions that are compatible with the ccall calling convention. It also includes some standard library abstractions. With the following C++ function in the object file cbits/string.o: We can import it into Haskell with: It works by looking up the symbol in the object file. When using cabal, it is recommended you include the C++ file in your c-sources and compile it in a build hook. For example: Foreign.CPlusPlusStdLib exports the following type class: To avoid orphan instances, it implements instances for some numeric types, String and ByteString.
由 
bruceshi2021-01-13 收录
--
推荐
不推荐
更多信息
GitHub iconNICTA/cplusplus-th34
HACKAGE
carbal install cplusplus-th
查看
标签
根据用户添加的标签生成
暂无标签