While trying to compile qforeign cvs with ghc-5.02.1, I get
the following error.
/usr/bin/ghc -c -O -Wall -fglasgow-exts -package lang
-package data -package concurrent -package posix -iexamples
-ilib -Iexamples -Ilib examples/Libgr_hsc.c
programs/hsc2hs-inplace --cc=/usr/bin/ghc
Hi, there
I am using Greencard with Hask's foreign function export. I found
the following program can cause seg-fault. Anyone has any idea? BTW,
if I replace greencard with Hask's foreign function import, there
is no such error.
in ABC.gc:
foreign export ccall h_add h_add :: Int - IO Int
Hi there,
we would like to adapt a Haskell parser for whatever purposes, and looked
for one in the ghc distribution. However, in ghc 5.02, we found two
happy-generated parsers, one in ghc/compiler/parser and one in
hslibs/hssource which both look similar, but seem to be slightly different
(at
Simon Marlow [EMAIL PROTECTED] writes:
/tmp/ghc19742.hc:4928: Unable to find a register to spill in
class `SIREG'.
/tmp/ghc19742.hc:4928: confused by earlier errors, bailing out
make: *** [examples/Libgr.o] error 1
This is an error from the C compiler telling you it ran out of registers
THE BEST XXX ON THE NET GUARANTEED FREE OFFER!!
FREE 3 DAY TRIAL TO THE BEST XXX ON THE NET
IF YOU ARE HORNY FULFILL ALL YOUR DESIRES NOW!!
CLICK ON THE LINK BELOW RIGHT NOW FOR A FREE 3 DAY TRIAL TO THE
BEST
XXX ON THE NET!
http://www.killerwebconcepts.com/bops/
WE GUARANTEE WHEN YOU LEAVE
| Since the Report states that the derived Show instances only insert
| parentheses where needed and that the derived Read instances can
| read the output produced by show, I would suggest to change all
| occurences of {showsPrec 10,readsPrec 10} to {showsPrec 0,readsPrec 0}
| in the
Hi, I want to invoke the C-function 'dlsym', which has three
possible options for a parameter of type (void*):
- NULL
- void* to a string, i.e. CString in Haskell
- RTLD_NEXT = (void *)(-1)
The first two ones are no problem, I can use a CString and
'nullPtr'. For the last one, I have the
In local.glasgow-haskell-users, you wrote:
main =
do
d - connectTo localhost (PortNumber 80)
hPutStr d GET / HTTP/1.0\n\n
hFlush d
c - hGetContents d
putStr c
whereas on Linux I get the following error:
*** Exception: failed
Action: connect
Reason: Unknown
In local.glasgow-haskell-users, you wrote:
It seems that the Socket library does still not work
with ghc 5.02.1.
[ghci clarification]
There, it crashes for me even on the 2nd invocation:
connect(13, {sin_family=AF_INET, sin_port=htons(80),
sin_addr=inet_addr(137.226.194.33)}}, 16) = -1
Am 22. Nov 2001 um 16:22 MET schrieb Simon Marlow:
I'm sad to say there was another bug in
SocketPrim.getSocketOption in
5.02.1. Please try the enclosed patch.
How does this explain the two differing behaviours?
And why didn't it happen in a compiled version?
Because the 'optlen'
At [EMAIL PROTECTED] I asked the following:
this works
data Exists f = forall x . E ( f x)
this doesn't work
newtype Exists f = forall x . E ( f x)
Hugs accepts both.
It there a reason why existential quantification does not work with a
newtype, or is it just
a
Thu, 22 Nov 2001 13:57:32 +0100, Volker Stolz [EMAIL PROTECTED] pisze:
Hi, I want to invoke the C-function 'dlsym', which has three
possible options for a parameter of type (void*):
- NULL
- void* to a string, i.e. CString in Haskell
- RTLD_NEXT = (void *)(-1)
You can obtain the value
Herman Graal [EMAIL PROTECTED] wrote,
Is there any good alternatives to having to sprinkle whitespace parsers all over a
parser implemented with parser combinators?
It kind of decreases the readability... ;-)
I'm interested in any ideas. Would like a full picture of the different
peace
Look at Rex Page's Beseme project
http://www.cs.ou.edu/research/beseme.shtml
(which uses the Hall and O'Donnell book to do some interesting educational
research).
John
___
Haskell mailing list
[EMAIL PROTECTED]
John Hughes:
Look at Rex Page's Beseme project
http://www.cs.ou.edu/research/beseme.shtml
(which uses the Hall and O'Donnell book to do some interesting educational
research).
Just two useless words, on that project and *many* others.
Rex Page focuses on *discrete math*. I
peace
peace
peace
The University where I did my Maths degree also had an extremely good Computer Science
department, but sadly this connection was not exploited nearly as much as it should
have been. I have two anecdotes which might be relevant:
(1) I remember being told off by one teaching assistant for writing
The trouble here is the usual one: accumArray is lazy,
and simply accumulates a giant closure in each array slot.
Then, when it is evaluated, the stack gets big.
There should really be a strict accumArray, just as there
should be a strict foldl. There isn't in Haskell 98, but if you
are using a
peace
In case you haven't figured it out yet, the recent rash of posts by some of
our list members is symptomatic of a virus; Arjan van Ijzendoorn says it
is the Aliz virus. There is information about it here:
http://www3.ca.com/virus/virus.asp?ID=10405
So if you're using Outlook, don't open
Hello *,
I am just curious: Why does Haskell not provide exceptions a la SML?
Why does only the IO monad allow for exceptions?
Michael
___
Haskell-Cafe mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/haskell-cafe
Hello *,
I am just curious: Why does Haskell not provide exceptions a la SML?
Why does only the IO monad allow for exceptions?
GHC certainly implements exceptions, along the lines described in
A semantics for imprecise exceptions, Simon Peyton Jones, Alastair
Reid, Tony Hoare, Simon
On 22-Nov-2001, Keith Wansbrough [EMAIL PROTECTED] wrote:
I am just curious: Why does Haskell not provide exceptions a la SML?
Why does only the IO monad allow for exceptions?
GHC certainly implements exceptions, along the lines described in
A semantics for imprecise exceptions, Simon
peace
28 matches
Mail list logo