on develop help sign in
Merge pull request #52 from mgsloan/patch-2

Suggest function for flattening results of 'dyn'

commit60940799a7af1077db82a8fe2564fa715b4ad703 authorAli Abrar <aliabrar@gmail.com> dateSun 28 Feb 2016, 13:33 (11 years ago) parentc335f83c17d6c3
1 file changed+1−1
src/Reflex/Dom/Widget/Basic.hs+1−1
src/Reflex/Dom/Widget/Basic.hs+1−1
@@ -130,7 +130,7 @@ display a = dynText =<< mapDyn show a
130130--TODO: Should this be renamed to 'widgetView' for consistency with 'widgetHold'?
131131-- | Given a Dynamic of widget-creating actions, create a widget that is recreated whenever the Dynamic updates.
132132-- The returned Event of widget results occurs when the Dynamic does.
133−-- Note: Often, the type 'a' is an Event, in which case the return value is an Event-of-Events that would typically be flattened.
133+-- Note: Often, the type 'a' is an Event, in which case the return value is an Event-of-Events that would typically be flattened (via 'switchPromptly').
134134dyn :: MonadWidget t m => Dynamic t (m a) -> m (Event t a)
135135dyn child = do
136136 postBuild <- getPostBuild