Hugs ffi, sizeOf operator

"R. Legere" <[email protected]>
Newsgroups gmane.comp.lang.haskell.hugs.bugs
Message-ID <003001c2b5c4$20493000$0200a8c0@bubba>
I ran into a possible problem while testing some ffi code.
 This is with hugs compiled for cygwin or with the windows (msi)  version.
Hugs says: sizeOf x::CDouble is 4,
wheras 'C' says sizeof(double) is 8.

I ~~think~~ I see what the problem is with sizeOf.  I am using the
new hierarchical libs, and it defines sizeOf by hardcoding the sizes rather
then asking 'c' like the previous versions did. And sizeOf Double is coded
as 4 in libraries\Foreign\Storable.hs
Is there something simple I just don't understand? 

As a side note, is alignPtr implemented somewhere?

(Alastair, I already sent this to you, but didnt sent to the list.)

Gratefully, 
  Ron
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.