summaryrefslogtreecommitdiff
path: root/compiler/utils/Stream.hs
diff options
context:
space:
mode:
authorGabor Greif <ggreif@gmail.com>2013-04-05 20:22:35 +0200
committerGabor Greif <ggreif@gmail.com>2013-04-06 11:41:07 +0200
commit9b3d4cdd26a9fbf0a1183185bedbe11925b1ddb4 (patch)
treea0476dc6ea466059cfd5a8d8677fa18b7af9b944 /compiler/utils/Stream.hs
parentb84da617c4dadcfbf47796e7a75c21d6b4c4947a (diff)
downloadhaskell-9b3d4cdd26a9fbf0a1183185bedbe11925b1ddb4.tar.gz
Fix typos
Diffstat (limited to 'compiler/utils/Stream.hs')
-rw-r--r--compiler/utils/Stream.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/utils/Stream.hs b/compiler/utils/Stream.hs
index 2fa76d2345..bfc6f939b5 100644
--- a/compiler/utils/Stream.hs
+++ b/compiler/utils/Stream.hs
@@ -66,7 +66,7 @@ collect str = go str []
fromList :: Monad m => [a] -> Stream m a ()
fromList = mapM_ yield
--- | Apply a function to each element of a 'Stream', lazilly
+-- | Apply a function to each element of a 'Stream', lazily
map :: Monad m => (a -> b) -> Stream m a x -> Stream m b x
map f str = Stream $ do
r <- runStream str
@@ -74,7 +74,7 @@ map f str = Stream $ do
Left x -> return (Left x)
Right (a, str') -> return (Right (f a, Stream.map f str'))
--- | Apply a monadic operation to each element of a 'Stream', lazilly
+-- | Apply a monadic operation to each element of a 'Stream', lazily
mapM :: Monad m => (a -> m b) -> Stream m a x -> Stream m b x
mapM f str = Stream $ do
r <- runStream str