Re: Why does sizeOf Word64 = 4?

2003-11-09 Thread Martin Norbäck
sn 2003-11-09 klockan 03.32 skrev Ben Escoto: Hi, I'm trying to learn about Haskell's FFI (running 6.0.1 on linux) and see the following weird behavior with ghci: Prelude :module Data.Word Foreign.Storable Foreign.Ptr Prelude Foreign.Ptr Foreign.Storable Data.Word sizeOf nullPtr

Re: Why does sizeOf Word64 = 4?

2003-11-09 Thread Alastair Reid
Hi, I'm trying to learn about Haskell's FFI (running 6.0.1 on linux) and see the following weird behavior with ghci: You're seeing the right behaviour. Shouldn't sizeOf nullPtr return an error? And sizeOf a Ptr Word64 should be 8 I think. The size of a Word64 value is 8 but the size of a

Re: Why does sizeOf Word64 = 4?

2003-11-09 Thread Ben Escoto
On Sun, 9 Nov 2003 08:51:11 + Alastair Reid [EMAIL PROTECTED] wrote: Hi, I'm trying to learn about Haskell's FFI (running 6.0.1 on linux) and see the following weird behavior with ghci: You're seeing the right behaviour. ... The size of a Word64 value is 8 but the size of a pointer is

Why does sizeOf Word64 = 4?

2003-11-08 Thread Ben Escoto
Hi, I'm trying to learn about Haskell's FFI (running 6.0.1 on linux) and see the following weird behavior with ghci: Prelude :module Data.Word Foreign.Storable Foreign.Ptr Prelude Foreign.Ptr Foreign.Storable Data.Word sizeOf nullPtr 4 Prelude Foreign.Ptr