Preprocessor question

1999-07-12 Thread Michael Weber
Hi! Please, can somebody explain, why the preprocessor is hardcoded in the GHC perl scripts? IIRC ghc (the perlscript itself) doesn't even reference $RAWCPP. mkdependHS and hscpp do, but why an absolute path and this obscure "-iprefix" parameter? Again, "-iwithprefix" is never used... Would it

Re: Problem with 4.03 FFI on Sparc?

1999-07-12 Thread Sven Panne
[ redirected to ghu ] "Frank A. Christoph" wrote: I wrote: * A more pressing point is that GHC is tied to x86 machines at moment, see e.g. MBlock.c or Adjustor.c. It is? I thought these were only relevant for the FFI. OK, I was a little vague: MBlock.c is needed by the RTS in any case

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 :: () - IO