
21 Oct
2009
21 Oct
'09
10:36 a.m.
Michael Mossey
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