Michael Mossey <m...@alumni.caltech.edu> 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 <g...@gregorycollins.net> _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe