RE: read???OffAddr is broken

2000-01-28 Thread Simon Marlow
My strange evaluation problems could be reduced to the following code snippet: -- import Addr foreign import ccall "malloc" unsafe malloc :: Int - IO Addr foreign import ccall "free" unsafe free :: Addr - IO () main ::

RE: read???OffAddr is broken

2000-01-28 Thread Malcolm Wallace
Sigh. I guess we need real IO versions of readStuffOffAddr. That means adding another 9 primops, taking the total to 260 :-( Am I not right in thinking that read/writeStuffOffAddr is now obsolete anyway? Looking at Sven's FFI proposal, all the variations are now subsumed under the Storable

RE: read???OffAddr is broken

2000-01-28 Thread Simon Peyton-Jones
| Am I not right in thinking that read/writeStuffOffAddr is now obsolete | anyway? Looking at Sven's FFI proposal, all the variations are now | subsumed under the Storable class, using | | class Storable a where | ... | pokeElemOff :: Addr - Int - a - IO () | peekElemOff :: Addr -

RE: FFI on sparc

2000-01-28 Thread Simon Peyton-Jones
Julian will look into this. How badly is it hurting you? He's deep in the native code generator just now, so an instant response is unlikely. Simon | -Original Message- | From: Jan Kort [mailto:[EMAIL PROTECTED]] | Sent: 24 January 2000 16:57 | To: [EMAIL PROTECTED] | Subject: FFI on

Re: FFI.lhs

2000-01-28 Thread George Russell
"Jeffrey R. Lewis" wrote: Currently (out of CVS), a compile of `hslib/lang' fails on FFI.lhs: FFI.lhs:119: Data constructor not in scope: `SIZEOF_CHAR' FFI.lhs:120: Data constructor not in scope: `ALIGNMENT_CHAR' . I'm compiling it under linux. The same happened to me a few

Re: FFI.lhs

2000-01-28 Thread Sven Panne
"Jeffrey R. Lewis" wrote: Currently (out of CVS), a compile of `hslib/lang' fails on FFI.lhs: FFI.lhs:119: Data constructor not in scope: `SIZEOF_CHAR' FFI.lhs:120: Data constructor not in scope: `ALIGNMENT_CHAR' [...] Some parts of the configuration mechanism changed. Did you invoke

Re: FFI.lhs

2000-01-28 Thread George Russell
Sven Panne wrote: Some parts of the configuration mechanism changed. Did you invoke autoheader and autoconf before configure? I didn't either, I didn't even know about autoheader though I suppose I should have worked it out from Makefile.config. Perhaps a README file that actually gave correct

Re: ANNOUNCE: GHC 4.06 released

2000-01-28 Thread Dirk Evers
Hi, ghc-4.06 distribution lacks the configure script in the ghc subdir. Running autoconf in ghc subdir fixes the problem. Dirk --- Dirk Evers / AG-PI / Technische Fakultaet Office: M3-120 Universitaet Bielefeld Tel: +49 521 106-2905

Re: FFI.lhs

2000-01-28 Thread Jeffrey R. Lewis
Sven Panne wrote: "Jeffrey R. Lewis" wrote: Currently (out of CVS), a compile of `hslib/lang' fails on FFI.lhs: FFI.lhs:119: Data constructor not in scope: `SIZEOF_CHAR' FFI.lhs:120: Data constructor not in scope: `ALIGNMENT_CHAR' [...] Some parts of the configuration mechanism

panic! (the `impossible' happened):

2000-01-28 Thread George Russell
Trying to compile the GHC CVS sources, downloaded today, with the ghc-4.06 binary distribution I get ==fptools== gmake all --no-print-directory -r; in /usr/local/pub-bkb/ghc/fptools/hslibs/lang rm -f Weak.o ; if [ ! -d