On Tue, Apr 20, 2010 at 8:48 AM, Tom Hawkins <tomahawk...@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: http://hackage.haskell.org/package/bindings-DSL regards, Bas _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe