Re: What does interruptibility mean exactly?

2010-06-14 Thread Don Stewart
v.dijk.bas: > Hello, > > I've a short question about interruptible operations. In the following > program is it possible for 'putMVar' to re-throw asynchronous > exceptions even when asynchronous exception are blocked/masked? > > newEmptyMVar >>= \mv -> block $ putMVar mv x > > The documentat

What does interruptibility mean exactly?

2010-06-14 Thread Bas van Dijk
Hello, I've a short question about interruptible operations. In the following program is it possible for 'putMVar' to re-throw asynchronous exceptions even when asynchronous exception are blocked/masked? newEmptyMVar >>= \mv -> block $ putMVar mv x The documentation in Control.Exception about

Re: ANNOUNCE: GHC version 6.12.3

2010-06-14 Thread Christian Maeder
Hi, I've successfully compiled ghc-6.12.3 under x86 solaris. However, for the testsuite I had to add '-lz' to the threaded1 entry of config.way_flags in file testsuite/config/ghc: 'threaded1' : ['-lz', '-threaded', '-debug'], Otherwise I got many link failures of the kind: Compile fai

Re: laziness in `length'

2010-06-14 Thread Daniel Fischer
On Monday 14 June 2010 16:25:06, Serge D. Mechveliani wrote: > Dear people and GHC team, > > I have a naive question about the compiler and library of ghc-6.12.3. > Consider the program > > import List (genericLength) > main = putStr $ shows (genericLength [1 .. n]) "\n" > where >

laziness in `length'

2010-06-14 Thread Serge D. Mechveliani
Dear people and GHC team, I have a naive question about the compiler and library of ghc-6.12.3. Consider the program import List (genericLength) main = putStr $ shows (genericLength [1 .. n]) "\n" where n = -- 10^6, 10^7, 10^8 ... (1) When it is compiled under -O,