summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Braun <matthias.braun@liwest.at>2019-12-03 14:57:36 -0500
committerMarge Bot <ben+marge-bot@smart-cactus.org>2019-12-05 16:07:51 -0500
commitf171b3582d44746bf8b08897a3b23bc97e5dbdda (patch)
tree1ded7118cff157c2f41201b37985ccca4cf7589d
parenta7a4efbff1badf7daa41256cb506915e4fddee5c (diff)
downloadhaskell-f171b3582d44746bf8b08897a3b23bc97e5dbdda.tar.gz
Fix typo in documentation of Base.hs.
-rw-r--r--libraries/base/Control/Exception/Base.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/libraries/base/Control/Exception/Base.hs b/libraries/base/Control/Exception/Base.hs
index 4b5d94ece7..f15dc0590d 100644
--- a/libraries/base/Control/Exception/Base.hs
+++ b/libraries/base/Control/Exception/Base.hs
@@ -166,7 +166,7 @@ mapException f v = unsafePerformIO (catch (evaluate v)
-- | Similar to 'catch', but returns an 'Either' result which is
-- @('Right' a)@ if no exception of type @e@ was raised, or @('Left' ex)@
-- if an exception of type @e@ was raised and its value is @ex@.
--- If any other type of exception is raised than it will be propogated
+-- If any other type of exception is raised then it will be propagated
-- up to the next enclosing exception handler.
--
-- > try a = catch (Right `liftM` a) (return . Left)