RE: Unable to find a register to spill in class `SIREG'.

2001-11-22 Thread Simon Marlow
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

greencard bug

2001-11-22 Thread Chen Yu
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

GHC parsers

2001-11-22 Thread Simon Helsen
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

Re: Unable to find a register to spill in class `SIREG'.

2001-11-22 Thread Jens Petersen
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

F*ck me Big Daddy!!!!!!!

2001-11-22 Thread sales
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

Re: Binary library

2001-11-22 Thread Malcolm Wallace
| 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

hsc: Passing -1 as CString/Ptr a?

2001-11-22 Thread Volker Stolz
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

Re: Socket library ghc 5.02.1

2001-11-22 Thread Volker Stolz
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

Re: Socket library ghc 5.02.1

2001-11-22 Thread Volker Stolz
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

RE: Socket library ghc 5.02.1

2001-11-22 Thread Simon Marlow
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'

Existentials and newtype

2001-11-22 Thread Arthur Baars
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

Re: hsc: Passing -1 as CString/Ptr a?

2001-11-22 Thread Marcin 'Qrczak' Kowalczyk
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

Re: Handling whitespace with parser combinator parsers

2001-11-22 Thread Manuel M. T. Chakravarty
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

Fw: Re: Hot stuff - check it !

2001-11-22 Thread Alex P.Gordienko
peace

Re: Haskell in the teaching of Maths

2001-11-22 Thread 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). John ___ Haskell mailing list [EMAIL PROTECTED]

Re: Haskell in the teaching of Maths

2001-11-22 Thread Jerzy Karczmarczuk
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

Fw: Re: many shit to check ?!

2001-11-22 Thread Alex P.Gordienko
peace

Fw: Hot pics to check ?!

2001-11-22 Thread Alex P.Gordienko
peace

Fw: funky shit to see

2001-11-22 Thread Alex P.Gordienko
peace

Re: Haskell in the teaching of Maths

2001-11-22 Thread George Russell
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

RE: heap and walking through a very long list

2001-11-22 Thread Simon Peyton-Jones
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

Fw: Interesting pics for you ?!

2001-11-22 Thread Alex P.Gordienko
peace

Virus

2001-11-22 Thread Frank Atanassow
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

inscrição

2001-11-22 Thread Bluewolf

Why no exceptions in Haskell?

2001-11-22 Thread Michael Marte
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

Re: Why no exceptions in Haskell?

2001-11-22 Thread Keith Wansbrough
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

Re: Why no exceptions in Haskell?

2001-11-22 Thread Fergus Henderson
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

Fw: Re: some mp3s here hehe ;-)

2001-11-22 Thread daan
peace