RE: Priority of % (Ratio)

2002-09-03 Thread Simon Marlow
If I load ratio and type 2^3%5 into Hugs I get 8 % 5 as I'd expect. If I do the same for ghci, I get an error message, because it's parsed it as 2^(3%5). Prelude Ratio ought to have infixl 7 % (or maybe it should be in GHC.Real), but I can't find it (in either) Fixed, thanks.

FFI: passing 6 FD arguments doesn't work

2002-09-03 Thread George Russell
uname -a: SunOS titania 5.8 Generic_108528-15 sun4u sparc SUNW,Ultra-1 ghc --version: The Glorious Glasgow Haskell Compilation System, version 5.04 gcc --version: 2.95.3 With the files in the attached archive unpacked: ghc hw5.c TestHW5.hs -ffi -package posix -o hw5 -Wall ./hw5

Re: FFI: passing 6 FD arguments doesn't work

2002-09-03 Thread Alastair Reid
However the only difference between the two is that the C function called by TestHW.hs has 6 arguments of type Fd, while that called by TestHW5.hs has only 5. Quick thing to try to see if it helps: It's possible that the problem is only affecting one of GHC's code generators so you might