Re: calling void foo(void) C functions from haskell

1999-07-12 Thread Manuel M. T. Chakravarty
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 ::

calling void foo(void) C functions from haskell

1999-07-11 Thread Peter Amstutz
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