From a0d9169362b4cc47f8eb323f96dd18e6e9c6728a Mon Sep 17 00:00:00 2001 From: Ismail <ismail-s@users.noreply.github.com> Date: Fri, 7 Jul 2017 17:19:33 +0100 Subject: [PATCH] Fix minor typo --- libraries/base/Control/Exception.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/base/Control/Exception.hs b/libraries/base/Control/Exception.hs index 88938e2ee25a..93ba3d5f913b 100644 --- a/libraries/base/Control/Exception.hs +++ b/libraries/base/Control/Exception.hs @@ -376,7 +376,7 @@ handled differently. Instead, you would probably want something like: > e <- tryJust (guard . isDoesNotExistError) (readFile f) > let str = either (const "") id e -There are occassions when you really do need to catch any sort of +There are occasions when you really do need to catch any sort of exception. However, in most cases this is just so you can do some cleaning up; you aren't actually interested in the exception itself. For example, if you open a file then you want to close it again, -- GitLab