Re: network programming with GHC 7

2010-10-28 Thread Bryan O'Sullivan
On Thu, Oct 28, 2010 at 2:16 AM, Kazu Yamamoto wrote: > When I compiled a network server with GHC 7 without the "-threaded" > option and ran it, I got the following error. > >file descriptor 5496824 out of range for select (0--1024). > > I have read the paper "Scalable Event Handling for

Re: newbie: how to expose a package?

2010-10-28 Thread Larry Evans
On 10/27/10 13:39, Larry Evans wrote: > With the following .hs: > > ==<--TestPrettyPrintLeijen.hs--> > module TestPrettyPrintLeijen where [snip] > import Debug.QuickCheck.Batch > {- Above import based on exposed-modules: section of: > /usr/lib/ghc-6.12.1/package.conf.d/QuickCheck-1.2.0.0.conf > >

Re: Wadler space leak

2010-10-28 Thread Bertram Felgenhauer
Hi, > let (first,rest) = break (const False) input > in > print (length (first ++ rest)) > > When I compile this program using -O2 and use a large text file as > input the code runs in constant space. If I understand correctly, > the program runs in constant space because ghc uses an optimi

network programming with GHC 7

2010-10-28 Thread 山本和彦
Hello, When I compiled a network server with GHC 7 without the "-threaded" option and ran it, I got the following error. file descriptor 5496824 out of range for select (0--1024). I have read the paper "Scalable Event Handling for GHC" and understand that this new IO manger assumes the "

Wadler space leak

2010-10-28 Thread Jan Christiansen
Hi, I have a question regarding the famous Wadler space leak. The following program is a variation of Wadler's example. let (first,rest) = break (const False) input in print (length (first ++ rest)) When I compile this program using -O2 and use a large text file as input the code run