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.
hackage.haskell.org
1.0.0.0
over 11 years ago
1
1,317 total
1
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 |