RE: problems with ghc ffi

2002-11-04 Thread Simon Peyton-Jones
GHC questions to ghc-users please, not the main Haskell list.   You need the -ffi flag to use the FFI. S   -Original Message- From: David Abbs [mailto:[EMAIL PROTECTED]] Sent: 04 November 2002 14:38 To: [EMAIL PROTECTED] Subject: problems with ghc ffi   I am having probl

problems with ghc ffi

2002-11-04 Thread David Abbs
I am having problems with the GHC FFI, I am using GHC version 5.04.1 and am trying to compile the sample code given on the web site___module Foo where foreign export ccall foo :: Int -> IO Int foo :: Int -> IO Int foo n = return (length (f n)) f :: Int -> [