[Haskell-cafe] C variable access via FFI

Bas van Dijk v.dijk.bas at gmail.com
Tue Apr 20 05:31:11 EDT 2010

On Tue, Apr 20, 2010 at 8:48 AM, Tom Hawkins <tomahawkins at gmail.com> wrote:
> I have a bunch of global variables in C I would like to directly read
> and write from Haskell.  Is this possible with FFI, or must I write a
> bunch of C wrapper functions for the interface, i.e. a 'get' and a
> 'set' for each variable?

I believe Maurício C. Antunes' bindings-DSL has support for automating
reading from and writing to global variables. Look at the "Detailed
usage guide" from the home page of:




More information about the Haskell-Cafe mailing list