[Haskell-cafe] Strictness is observable

John Meacham john at repetae.net
Fri Apr 1 11:47:06 CEST 2011


On Fri, Apr 1, 2011 at 2:23 AM,  <oleg at okmij.org> wrote:
>
> John Meacham wrote:
>> Error is not catchable in haskell 98. Only things thrown by raiseIO are.
>
> I see; so GHC, absent any LANGUAGE pragma, should have arranged for
> `error' to generate a non-catchable exception.

Actually, it was because you imported Control.Exception. the catch/handle in
Control.Exception has different behavior than the catch in Prelude. one catches
imprecise exceptions, the other doesn't.

        John



More information about the Haskell-Cafe mailing list