Re: [Haskell] Bang patterns and declaration order

2007-11-18 Thread Lennart Augustsson
I totally agree with Derek. Which exception you get can vary with compiler version, compiler flags, time of day, phase of the moon, ... It will be one in a set of exceptions, but you don't know which one. -- Lennart On Nov 18, 2007 8:34 PM, Derek Elkins <[EMAIL PROTECTED]> wrote: > On Sun, 20

Re: [Haskell] Bang patterns and declaration order

2007-11-18 Thread Derek Elkins
On Sun, 2007-11-18 at 12:11 -0800, Iavor Diatchki wrote: > Hello, > > I was playing around with "bang patterns" and I noticed that > when combined with asynchronous exceptions they can lead to > programs where the order of the declarations in a binding > group is important! Here is an example: >

Re: [Haskell] Bang patterns and declaration order

2007-11-18 Thread Felipe Lessa
On Nov 18, 2007 6:11 PM, Iavor Diatchki <[EMAIL PROTECTED]> wrote: > I was playing around with "bang patterns" and I noticed that > when combined with asynchronous exceptions they can lead to > programs where the order of the declarations in a binding > group is important! I think that's why they

[Haskell] Bang patterns and declaration order

2007-11-18 Thread Iavor Diatchki
Hello, I was playing around with "bang patterns" and I noticed that when combined with asynchronous exceptions they can lead to programs where the order of the declarations in a binding group is important! Here is an example: > import Control.Exception > import Prelude hiding (catch) > > main =