on develop help sign in
Merge pull request #302 from greyhillman/patch-1

Fix typos in some haddock documentation

commiteefb7761f6b5dfe30b4e97310cb15463d889506a authorAli Abrar <aliabrar@gmail.com> dateThu 9 May 2019, 05:02 (7 years ago) parenta3590c372516e3
2 files changed+2−2
src/Reflex/Class.hs+1−1 src/Reflex/Workflow.hs+1−1
src/Reflex/Class.hs+1−1
@@ -1367,7 +1367,7 @@ mapAccumMaybeB
13671367 -> m (Behavior t a, Event t c)
13681368mapAccumMaybeB f = mapAccumMaybeMB $ \v o -> return $ f v o
13691369
1370−-- | LIke 'mapAccumMaybeB' except that the combining function is a 'PushM' action.
1370+-- | Like 'mapAccumMaybeB' except that the combining function is a 'PushM' action.
13711371{-# INLINE mapAccumMaybeMB #-}
13721372mapAccumMaybeMB :: (Reflex t, MonadHold t m, MonadFix m) => (a -> b -> PushM t (Maybe a, Maybe c)) -> a -> Event t b -> m (Behavior t a, Event t c)
13731373mapAccumMaybeMB f z e = do
src/Reflex/Workflow.hs+1−1
@@ -41,7 +41,7 @@ workflowView w0 = do
4141 eReplace <- fmap switch $ hold never $ fmap snd eResult
4242 return $ fmap fst eResult
4343
44−-- | Map a function over a 'Workflow', possibly changing the resturn type.
44+-- | Map a function over a 'Workflow', possibly changing the return type.
4545mapWorkflow :: (Reflex t, Functor m) => (a -> b) -> Workflow t m a -> Workflow t m b
4646mapWorkflow f (Workflow x) = Workflow (fmap (f *** fmap (mapWorkflow f)) x)
4747