Re: Running out of memory in a simple monad

2002-12-18 Thread Alastair Reid
Simon Marlow [EMAIL PROTECTED] writes: Also, GHCi retains CAFs in the same way as Hugs, the difference is that GHCi can be configured to throw away the results after evaluation (:set +r). If I set this flag, does GHCi discard CAFs during evaluation or at the end of evaluation? Or, to put it

RE: Running out of memory in a simple monad

2002-12-18 Thread Simon Marlow
Simon Marlow [EMAIL PROTECTED] writes: Also, GHCi retains CAFs in the same way as Hugs, the difference is that GHCi can be configured to throw away the results after evaluation (:set +r). If I set this flag, does GHCi discard CAFs during evaluation or at the end of evaluation? Or, to

PADL 2003: call for participation

2002-12-18 Thread Enrico Special Account
PADL'03: Second Call for Participation o PADL Registration Deadline is fast approaching (Dec 20th). Please register electronically asap. o Please also note that the special conference rate for the hotel is available only until Dec. 23rd. o Highlights

CfP: Workshop on Security Issues in Coordination Models, Languages and Systems

2002-12-18 Thread Gianluigi Zavattaro
== 1st International Workshop on Security Issues in Coordination Models, Languages and Systems (SecCo 2003) June 28-29, 2003, Eindhoven, the Netherlands

IO confusion

2002-12-18 Thread Ian Lynagh
Hi all, With Foo in the file c.out and the module \begin{code} module Main (main) where import IO (openFile, hGetContents, hClose, IOMode(ReadMode)) import System (getArgs) import Monad (when) main :: IO () main = do [x] - getArgs let you_want_it_to_work = read x cout -

RE: IO confusion

2002-12-18 Thread Simon Marlow
With Foo in the file c.out and the module \begin{code} module Main (main) where import IO (openFile, hGetContents, hClose, IOMode(ReadMode)) import System (getArgs) import Monad (when) main :: IO () main = do [x] - getArgs let you_want_it_to_work = read x cout -

Re: IO confusion

2002-12-18 Thread Ian Lynagh
On Wed, Dec 18, 2002 at 02:51:48PM -, Simon Marlow wrote: in fact, any prefix of Foo, including the empty string, would be correct. See section 21.2.2 in the (revised) Haskell 98 report. Aha, thanks. I've kludged around it with last (' ':s) `seq` hClose cout Ian

The Fun of Programming (fwd)

2002-12-18 Thread Hal Daume III
I got this on the Types Forum, but thought people here might find it of interest, too. [- The Types Forum, http://www.cis.upenn.edu/~bcpierce/types -] Dear colleagues: We would like to advertise the following symposium, and are pleased to invite you to participate. We apologize if you

Re: Random

2002-12-18 Thread Ketil Z. Malde
Mark Carroll [EMAIL PROTECTED] writes: On 17 Dec 2002, Ketil Z. Malde wrote: Ah - I was never sure what to make of that - I normally just use the GHC online Haddockised stuff which tells me no more than the type signatures, but I suppose split must be more than (\x-(x,x))! Well, as SPJ

Re: Library for concurrent threads running

2002-12-18 Thread Kevin Hammond
I am also not quite sure of your motivation! The current version of GpH is (or can be with very little difficulty) implemented using library calls. There is really no language extension per se, rather there are calls to tightly-coupled C code, plus a set of high level libraries to provide