If intToNat is a blunt instrument, then fromIntegral is the rapier :-) Remember Word
is GHC-specific; the FFI doesn't define it.
Simon
-Original Message-
From: Julian Seward (Intl Vendor) [mailto:[EMAIL PROTECTED]]
Sent: 25 February 2002 16:57
To: [EMAIL PROTECTED]; [EMAIL
I´m new in this list and I think that it´s a very good
idea, because we
can show our doubts.
I have a doubt in GHC: How can we include a folder in the compiling
process? Example: If one file called main.hs requires some
others modules
that are in one folder, how can compile it
I have tried do build ghc-5.00.2 from .hc files. I run
ditrib/hc-build,
but it fails:
--
--
===fptools== Finished making `all' in cbits ...
PWD = /tmp/ghc-5.00.2/hslibs/lang
Simon Marlow notes:
But fromIntegral *does* do the right thing, doesn't it?
Numeric.showHex (fromIntegral (-1 :: Int32) :: Word32)
0x
Interesting. The fact that this fooled Julian as well as me suggests
the behavior needs to be better documented. Interestingly, hugs yields
Hello:
I'm trying to run GHC in a mips-SGI-irix platform, more accurately Irix
6.
The last binary version avalaible
(ftp://ftp.dcs.glasgow.ac.uk/pub/haskell/glasgow/) is for ghc-2.10
(ghc-2.10-mips-sgi-irix6.tar.gz) .
In order to reach the actual ghc-5-XX step by step, I will start by
porting
Hi all,
I'm not sure if this is the appropriate place to ask about this, but
there's no GPH mailing list. I recently downloaded the source for
GUM-4.06-291100 and am having difficulty getting it to compile. The
complaint it gives is:
utils/Argv.lhs: can't locate import `Addr'
ghc: 1972928