on develop help sign in
Minor fixes to haddock docs
commit3e5e2847e201b4ff7e61b545284cf28ec2cd942e authorDivam <dfordivam@gmail.com> dateFri 18 Jan 2019, 19:48 (8 years ago) parentabdda73
1 file changed+4−5
src/Reflex/Dynamic.hs+4−5
src/Reflex/Dynamic.hs+4−5
@@ -265,9 +265,9 @@ traceDynWith f d =
265265-- | Replace the value of the 'Event' with the current value of the 'Dynamic'
266266-- each time the 'Event' occurs.
267267--
268−-- Note: @/tagPromptlyDyn d e@/ differs from @/tag (current d) e/@ in the case that @/e/@ is firing
269−-- at the same time that @/d/@ is changing. With @/tagPromptlyDyn d e/@, the __new__ value of @/d@/
270−-- will replace the value of @/e/@, whereas with @/tag (current d) e@/, the __old__ value
268+-- Note: @/tagPromptlyDyn d e/@ differs from @/tag (current d) e/@ in the case that @/e/@ is firing
269+-- at the same time that @/d/@ is changing. With @/tagPromptlyDyn d e/@, the __new__ value of @/d/@
270+-- will replace the value of @/e/@, whereas with @/tag (current d) e/@, the __old__ value
271271-- will be used, since the 'Behavior' won't be updated until the end of the frame.
272272-- Additionally, this means that the output 'Event' may not be used to directly change
273273-- the input 'Dynamic', because that would mean its value depends on itself. __When creating__
@@ -293,8 +293,7 @@ attachPromptlyDynWith f = attachPromptlyDynWithMaybe $ \a b -> Just $ f a b
293293-- current value of the 'Dynamic' value and possibly filtering if the combining
294294-- function returns 'Nothing'.
295295--
296−-- Note: `attachPromptlyDynWithMaybe f d` is not the same as `attachWithMaybe f
297−-- (current d)`. See 'tagPromptlyDyn' for details.
296+-- Note: @/attachPromptlyDynWithMaybe f d/@ is not the same as @/attachWithMaybe f (current d)/@. See 'tagPromptlyDyn' for details.
298297attachPromptlyDynWithMaybe :: Reflex t => (a -> b -> Maybe c) -> Dynamic t a -> Event t b -> Event t c
299298attachPromptlyDynWithMaybe f d e =
300299 let e' = attach (current d) e