language-c-inline: Inline C & Objective-C code in Haskell for language interoperability
This library provides inline C & Objective-C code using GHC's support for quasi-quotation. In particular, it enables the use of foreign libraries without a dedicated bridge or binding. Here is a tiny example:
log :: String -> IO () log msg = $(objc 'msg [cexp| NSLog (@"Here is a message from Haskell: %@", msg) |])
For more information, see https://github.com/mchakravarty/language-c-inline/wiki.
Known bugs: https://github.com/mchakravarty/language-c-inline/issues
New in 0.3.0.0: Boxed Haskell types without a dedicated type mapping are marshalled using stable pointers.
New in 0.2.0.0: Support for multiple free variables in one inline expression as well as for inline code returning
void
.New in 0.1.0.0: We are just getting started! This is just a ROUGH AND HIGHLY EXPERIMENTAL PROTOTYPE.
[Skip to Readme]
Downloads
- language-c-inline-0.3.0.0.tar.gz [browse] (Cabal source package)
- Package description (as included in the package)
Maintainer's Corner
For package maintainers and hackage trustees
Candidates
- No Candidates
Versions [RSS] | 0.3.0.0, 0.3.0.1, 0.5.0.0, 0.6.0.0, 0.7.6.0, 0.7.6.1, 0.7.7.0, 0.7.8.0, 0.7.9.0, 0.7.9.1, 0.7.9.2, 0.7.10.0, 0.7.11.0 (info) |
---|---|
Dependencies | array, base (>=4.0 && <5), filepath (>=1.2), language-c-quote (>=0.7), mainland-pretty (>=0.2.5), template-haskell [details] |
Tested with | ghc ==7.6.3 |
License | BSD-3-Clause |
Author | Manuel M T Chakravarty |
Maintainer | Manuel M T Chakravarty <chak@justtesting.org> |
Category | Language, Foreign |
Home page | https://github.com/mchakravarty/language-c-inline/ |
Bug tracker | https://github.com/mchakravarty/language-c-inline/issues |
Source repo | head: git clone git://github.com/mchakravarty/language-c-inline.git |
Uploaded | by ManuelChakravarty at 2014-01-21T03:40:20Z |
Distributions | |
Reverse Dependencies | 1 direct, 0 indirect [details] |
Downloads | 9838 total (1 in the last 30 days) |
Rating | (no votes yet) [estimated by Bayesian average] |
Your Rating | |
Status | Docs available [build log] Successful builds reported [all 1 reports] |