summaryrefslogtreecommitdiff
path: root/libraries/base
diff options
context:
space:
mode:
authorIsmail <ismail-s@users.noreply.github.com>2017-07-07 17:19:33 +0100
committerBen Gamari <ben@smart-cactus.org>2017-07-11 16:31:53 -0400
commita0d9169362b4cc47f8eb323f96dd18e6e9c6728a (patch)
tree6c276e17935cd556e9193c6b418ec70c750ea17c /libraries/base
parent20880b56267059f98ca9ca099b596fb0b7cf0c7e (diff)
downloadhaskell-a0d9169362b4cc47f8eb323f96dd18e6e9c6728a.tar.gz
Fix minor typo
Diffstat (limited to 'libraries/base')
-rw-r--r--libraries/base/Control/Exception.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/libraries/base/Control/Exception.hs b/libraries/base/Control/Exception.hs
index 88938e2ee2..93ba3d5f91 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,