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 ::
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
| 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 -
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
"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
"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
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
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
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
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
10 matches
Mail list logo