[commit: ghc] master: Fix minor typo (a0d9169)

git at git.haskell.org git at git.haskell.org
Tue Jul 11 20:33:20 UTC 2017


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/a0d9169362b4cc47f8eb323f96dd18e6e9c6728a/ghc

>---------------------------------------------------------------

commit a0d9169362b4cc47f8eb323f96dd18e6e9c6728a
Author: Ismail <ismail-s at users.noreply.github.com>
Date:   Fri Jul 7 17:19:33 2017 +0100

    Fix minor typo


>---------------------------------------------------------------

a0d9169362b4cc47f8eb323f96dd18e6e9c6728a
 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 88938e2..93ba3d5 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,



More information about the ghc-commits mailing list