20 Dec 16:01
Re: Storable types
Henning Thielemann <lemming <at> henning-thielemann.de>
2007-12-20 15:01:00 GMT
2007-12-20 15:01:00 GMT
On Thu, 20 Dec 2007, Alex Sandro Queiroz e Silva wrote: > Hallo fellow Brazilian, > > Clerton Filho escreveu: > > Hi, > > > > I'm newbie in Haskell, and I have some doubts... In this programming > > language, do we have storable values? Case affirmative, what are the > > storable types in Haskell, and how can I implement then... > > What exactly is a storable type? I guess you mean: http://haskell.org/ghc/docs/latest/html/libraries/base/Foreign-Storable.html A type becomes storable by implementing the Storable methods, namely sizeOf, aligment, peek, poke. To this end you can convert to and access the Storable methods of CInt, CDouble and friends.
RSS Feed