[Minor tweaks to ch20. Bryan O'Sullivan **20080604065327] { hunk ./en/book-shortcuts.xml 24 -IO"> +IO"> hunk ./en/ch17-monad-trans.xml 472 - + hunk ./en/ch20-errors.xml 7 - Error handling is one of the most important -- and overlooked -- - topics for programmers, regardless of the language used. In + Error handling is one of the most important&emdash;and overlooked&emdash;topics for programmers, regardless of the language used. In hunk ./en/ch20-errors.xml 57 - lazy evaluation at work -- it calculated results as needed. + lazy evaluation at work&emdash;it calculated results as needed. hunk ./en/ch20-errors.xml 155 - -- or even just filter out the problem results if desired. + &emdash;or even just filter out the problem results if desired. hunk ./en/ch20-errors.xml 322 - - hunk ./en/ch20-errors.xml 338 - Some problems -- especially those involving I/O -- call for + Some problems&emdash;especially those involving I/O&emdash;call for hunk ./en/ch20-errors.xml 344 - exceptions are -- surprise -- functions. + exceptions are&emdash;surprise&emdash;functions. hunk ./en/ch20-errors.xml 511 - a special module -- System.IO.Error exists + a special module&emdash;System.IO.Error exists hunk ./en/ch20-errors.xml 526 + Be careful which names you use hunk ./en/ch20-errors.xml 534 - module or the other. Also, note that - Prelude defines the - System.IO.Error version of &catch;. + module or the other. + + Note that Prelude exports + System.IO.Error's version of &catch;, + not the version provided by + Control.Exception. Remember that the former + can only catch I/O errors, while the latter can catch all + exceptions. In other words, the &catch; in + Control.Exception is almost always the one you + will want, but it is not the one you + will get by default. hunk ./en/ch20-errors.xml 605 - &Exception; by hand -- or to have already have one on hand to + &Exception; by hand&emdash;or to have already have one on hand to }