Re: reading text files

2004-10-04 Thread Tomasz Zielonka
On Mon, Oct 04, 2004 at 08:34:42PM +0200, Peter Simons wrote: > > hGetContents is fine, although you have to be aware that the > function does not implement any timeouts. Meaning, if you > don't receive the data you need, your program will hang. > > Whether your application is fast or not doesn't

Re: reading text files

2004-10-04 Thread Peter Simons
Carsten Schultz writes: > I want to read a text file from a socket and process it as a String > (using Parsec). Is hGetContent ok, or are there mor efficient > alternatives available, even if I want a String anyway? hGetContents is fine, although you have to be aware that the function does no

Re: AIX 5.1L Build of GHC 6.2.1

2004-10-04 Thread John Goerzen
On 2004-10-02, John Goerzen <[EMAIL PROTECTED]> wrote: > to help from people here, I have built a working GHC 6.2.1 for > AIX5.1L. (The last GHC I could find for AIX was GHC 2.09!) As a follow-up question: what does it take to get this listed at http://www.haskell.org/ghc/download_ghc_621.html?

reading text files

2004-10-04 Thread Carsten Schultz
Hi! I want to read a text file from a socket and process it as a String (using Parsec). Is hGetContent ok, or are there mor efficient alternatives available, even if I want a String anyway? Greetings, Carsten -- Carsten Schultz (2:38, 33:47), FB Mathematik, FU Berlin http://carsten.codimi.de/

RE: Bools are not unboxed

2004-10-04 Thread Simon Peyton-Jones
| > for :: Int -> IO () -> IO () | > for 0 _ = return () | > for n x = x >> for (n - 1) x Good example (allocates lots of silly thunks). I'd come across this before, and fixed the HEAD, but the 6.2 branch is still doing badly. We'll try to fix that. | Playing with the code generate