Michael Mossey <[email protected]> writes:
> The examples in the "error handling" chapter (19) of RWH don't run under GHC
> 6.10.
>
> For instance, an example might be
>
> main = handle (\_ -> putStrLn "error") (print $ 5 `div` 0)
I usually use:
main = handle (\(_ :: SomeException) -> putStrLn "error") (print $ 5 `div`
0)
...but you need the "ScopedTypeVariables" language extension.
G
--
Gregory Collins <[email protected]>
_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe