hsc2hs on Mac

Kazu Yamamoto ( 山本和彦 ) kazu at iij.ad.jp
Fri May 13 07:06:17 CEST 2011


Hello,

I'm using Haskell Platform 2011.2.0.1 on MacOS (Snow Leapard).

hsc2hs converts
  (#const sizeof(struct stat))
  (#peek struct stat, st_mtimespec)
to 
  108
  36
but the correct values are
  144
  32.

Is this a bug of hsc2hs?

gcc-4.0 says sizeof (struct stat) is 108 while gcc-4.2 (default) says
that is 144.

--Kazu



More information about the Glasgow-haskell-users mailing list