Peter Amstutz <[EMAIL PROTECTED]> wrote,
> I'm experimenting with the haskell FFI, and have run into a odd little
> problem. For some reason, ghc won't let me import functions with no
> arguments...
>
[...]
> And my first try (for.hs)
>
> foreign import ccall "hiworld.so" "hiworld" hiworld ::
I'm experimenting with the haskell FFI, and have run into a odd little
problem. For some reason, ghc won't let me import functions with no
arguments...
Here's my C file (hw.c)
#include
void hiworld(void)
{
printf("Hello, haskell world!\n");
}
Compiled to a shared library with
$ gcc --shar