Re: hsc2hs on Mac

2011-05-13 Thread Malcolm Wallace
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? Not directly. hsc2hs calls the C compiler to determine these numbers. It seems it is calling gcc-4.0 rather than gcc-4.2. It

crash caused by generic visitor (?)

2011-05-13 Thread Ranjit Jhala
Hi all, I'm trying to extract the set of identifiers that are read in given source file. To this end, I wrote the following code (full source at end.) main = do fname - (!! 0) `fmap` getArgs tcm -