An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

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] Package maintainers For package maintainers and hackage trustees Candidates 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.

Ecosystem
hackage.haskell.org
Latest Release
1.0.0.0
over 11 years ago
Versions
1
Downloads
1,317 total
Dependent Repos
1
Past Dependents
Include Past Dependents

Check this option to include packages that no longer depend on this package in their latest version but previously did.

Filter by Kind
Links
Registry hackage.haskell.org
Source Repository
JSON API View JSON
CodeMeta codemeta.json
Package Details
PURL pkg:hackage/cplusplus-th
spec
License BSD-3-Clause
First Release over 11 years ago
Last Synced 8 days ago
Repository
Stars 34 on GitHub
Forks 0 on GitHub