[Haskell-cafe] Get out structured data from a C/C++ library inHaskell

Carter Schonwald carter.schonwald at gmail.com
Fri Aug 8 19:43:14 UTC 2014

yup! But first write it correctly then make it pretty :)

On Fri, Aug 8, 2014 at 2:45 PM, Erik Hesselink <hesselink at gmail.com> wrote:

> On Fri, Aug 8, 2014 at 7:51 PM, Nicola Gigante <nicola.gigante at gmail.com>
> wrote:
> > Moreover, I see that peek and poke return IO a, so I
> > can't pretend that the interface that I'm wrapping is pure,
> > can I?
> I believe that providing a pure interface to FFI functions was in fact
> the reason unsafePerformIO was introduced. So if you know the function
> you're wrapping is in fact pure, you can use it to provide a pure
> Haskell interface to it.
> Erik
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20140808/89f28872/attachment.html>

More information about the Haskell-Cafe mailing list