Storable Class
Sven Panne
Sven.Panne@informatik.uni-muenchen.de
Fri, 04 Jan 2002 19:01:15 +0100
Carolina Mattos Cavalcanti wrote:
> I=B4m Carol, and I=B4m just need some help to find the predefined types=
=20
> from the storable class. [...]
The following types are instances of Storable:
Bool, Char, Int, Word, Ptr a, FunPtr a, StablePtr a, Float, Double,
Word8, Word 16, Word32, Word64, Int8, Int16, Int32, Int64, Addr
Note that the FFI "looks through" newtypes, so e.g. everything from CType=
s
is an instance of Storable, too. Did you have a look at the FFI draft
http://www.cse.unsw.edu.au/~chak/haskell/ffi.ps.gz
especially sec. 5.7? If yes, we should clarify this a bit...
Hope that helps,
S.