[Haskell-cafe] another FFI question

Galchin, Vasili vigalchin at gmail.com
Fri Jun 20 17:55:00 EDT 2008


Thanks Bulat!

Vasili

On Fri, Jun 20, 2008 at 3:20 PM, Bulat Ziganshin <bulat.ziganshin at gmail.com>
wrote:

> Hello Vasili,
>
> Friday, June 20, 2008, 11:51:11 PM, you wrote:
> > data Bonzo = A | B |C
>
> > How do I write the poke functions and call them?
>
> instance Storable Bonzo
>  poke A = poke 0
>  poke B = poke 1
>  poke C = poke 4
>
> call as "poke x"
>
> probably, you don't understand differences between OOP classes and
> type classes. look at http://haskell.org/haskellwiki/OOP_vs_type_classes
> and papers mentioned there
>
>
> --
> Best regards,
>  Bulat                            mailto:Bulat.Ziganshin at gmail.com
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20080620/5f873a75/attachment.htm


More information about the Haskell-Cafe mailing list