summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--compiler/utils/MonadUtils.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/utils/MonadUtils.hs b/compiler/utils/MonadUtils.hs
index 812e4e8e77..d1c0adb456 100644
--- a/compiler/utils/MonadUtils.hs
+++ b/compiler/utils/MonadUtils.hs
@@ -1,7 +1,7 @@
{-# LANGUAGE CPP #-}
-- | Utilities related to Monad and Applicative classes
--- Mostly for backwards compatability.
+-- Mostly for backwards compatibility.
module MonadUtils
( Applicative(..)
@@ -126,7 +126,7 @@ mapAndUnzip5M f (x:xs) = do
-- | Monadic version of mapAccumL
mapAccumLM :: Monad m
- => (acc -> x -> m (acc, y)) -- ^ combining funcction
+ => (acc -> x -> m (acc, y)) -- ^ combining function
-> acc -- ^ initial state
-> [x] -- ^ inputs
-> m (acc, [y]) -- ^ final state, outputs