Dopo una configurazione riuscita, esci con snipped
gclosure.c:29:17: fatal error: ffi.h: No such file or directory
compilation terminated.
Ho installato libffi e individuare ffi.h dà:
/home/luca/gcc4.6/gcc-4.6.0/libffi/include/ffi.h.in
/usr/include/x86_64-linux-gnu/ffi.h
/usr/share/doc/ghc-doc/html/users_guide/ffi.html
/usr/share/doc/libffi5/html/Using-libffi.html