on develop help sign in
Fix typos
5e1df2eAlexandre Esteves
src/Reflex/Dynamic.hs+3−3
@@ -352,7 +352,7 @@ factorDyn d = buildDynamic (sample (current d) >>= holdKey) update where
352--
352--
353-- > demuxed (demux d) k === fmap (== k) d
353-- > demuxed (demux d) k === fmap (== k) d
354--
354--
355−-- However, the when getDemuxed is used multiple times, the complexity is only
355+-- However, when getDemuxed is used multiple times, the complexity is only
356-- /O(log(n))/, rather than /O(n)/ for fmap.
356-- /O(log(n))/, rather than /O(n)/ for fmap.
357data Demux t k = Demux { demuxValue :: Behavior t k
357data Demux t k = Demux { demuxValue :: Behavior t k
358 , demuxSelector :: EventSelector t (Const2 k Bool)
358 , demuxSelector :: EventSelector t (Const2 k Bool)
@@ -506,7 +506,7 @@ instance AllAreFunctors f t => AllAreFunctors f (h ': t) where
506
506
507-- | Convert a datastructure whose constituent parts are all 'Dynamic's into a
507-- | Convert a datastructure whose constituent parts are all 'Dynamic's into a
508-- single 'Dynamic' whose value represents all the current values of the input's
508-- single 'Dynamic' whose value represents all the current values of the input's
509−-- consitutent 'Dynamic's.
509+-- constituent 'Dynamic's.
510collectDynPure :: ( RebuildSortedHList (HListElems b)
510collectDynPure :: ( RebuildSortedHList (HListElems b)
511 , IsHList a, IsHList b
511 , IsHList a, IsHList b
512 , AllAreFunctors (Dynamic t) (HListElems b)
512 , AllAreFunctors (Dynamic t) (HListElems b)
@@ -585,7 +585,7 @@ distributeDMapOverDyn = return . distributeDMapOverDynPure
585combineDyn :: forall t m a b c. (Reflex t, Monad m) => (a -> b -> c) -> Dynamic t a -> Dynamic t b -> m (Dynamic t c)
585combineDyn :: forall t m a b c. (Reflex t, Monad m) => (a -> b -> c) -> Dynamic t a -> Dynamic t b -> m (Dynamic t c)
586combineDyn f a b = return $ zipDynWith f a b
586combineDyn f a b = return $ zipDynWith f a b
587
587
588−-- | A psuedo applicative version of ap for 'Dynamic'. Example useage:
588+-- | A pseudo applicative version of ap for 'Dynamic'. Example useage:
589--
589--
590-- > do
590-- > do
591-- > person <- Person `mapDyn` dynFirstName
591-- > person <- Person `mapDyn` dynFirstName