> I most probably forgot something, but neither the manual nor the
> installation documentation nor ghc itself could help me.
>
> When I compile with the `-prof' option switched on, ghc
> cannot find the
> standard .hi files any more. I tried the 4.00 intel linux binaries and
> the 3.02 and 2.10
First of all, let me say that I like the new FFI (as
outlined in `A Primitive Foreign Function Interface') very
much :-) I really hope that this eventually makes it into
the Haskell standard - although, there are still some things
to smooth out.
Unfortunately, the implementation in GHC 4.01 is
If I link
import Addr (Addr, nullAddr)
foreign import ccall "foo" foo :: Int -> Addr -> IO ()
main = foo (id 32) nullAddr
with
void foo (int x, char *y)
{
printf ("foo: x = %d; y = %xl\n", x, (long) y);
}
I get
foo: x = 134516888; y = 0l
It is the combination of there bei
Hi,
I most probably forgot something, but neither the manual nor the
installation documentation nor ghc itself could help me.
When I compile with the `-prof' option switched on, ghc cannot find the
standard .hi files any more. I tried the 4.00 intel linux binaries and
the 3.02 and 2.10 spar