@@ -76,7 +76,6 @@ module Reflex.Class
76 , factorEvent
76 , factorEvent
77 , filterEventKey
77 , filterEventKey
78 -- ** Collapsing 'Event . Event'
78 -- ** Collapsing 'Event . Event'
80 , switchHold
79 , switchHold
81 , switchHoldPromptly
80 , switchHoldPromptly
82 , switchHoldPromptOnly
81 , switchHoldPromptOnly
@@ -287,7 +286,8 @@ class ( MonadHold t (PushM t)
287 -- | Create an 'Event' that will occur whenever the currently-selected input
286 -- | Create an 'Event' that will occur whenever the currently-selected input
288 -- 'Event' occurs
287 -- 'Event' occurs
289 switch :: Behavior t (Event t a) -> Event t a
288 switch :: Behavior t (Event t a) -> Event t a
290− -- | Create an 'Event' that will occur whenever the input event is occurring -- and its occurrence value, another 'Event', is also occurring
289+ -- | Create an 'Event' that will occur whenever the input event is occurring -- and its occurrence value, another 'Event', is also occurring.
290+ -- You maybe looking for 'switchHold' never instead.
291 coincidence :: Event t (Event t a) -> Event t a
291 coincidence :: Event t (Event t a) -> Event t a
292 -- | Extract the 'Behavior' of a 'Dynamic'.
292 -- | Extract the 'Behavior' of a 'Dynamic'.
293 current :: Dynamic t a -> Behavior t a
293 current :: Dynamic t a -> Behavior t a
@@ -981,10 +981,6 @@ fanThese e =
981fanMap :: (Reflex t, Ord k) => Event t (Map k a) -> EventSelector t (Const2 k a)
981fanMap :: (Reflex t, Ord k) => Event t (Map k a) -> EventSelector t (Const2 k a)
982fanMap = fan . fmap mapToDMap
982fanMap = fan . fmap mapToDMap
984−-- | 'switchHold' never = eventjoin
985−eventJoin :: (Reflex t, MonadHold t m) => Event t (Event t a) -> m (Event t a)
986−eventJoin = switchHold never
988-- | Switches to the new event whenever it receives one. Only the old event is
984-- | Switches to the new event whenever it receives one. Only the old event is
989-- considered the moment a new one is switched in; the output event will fire at
985-- considered the moment a new one is switched in; the output event will fire at
990-- that moment only if the old event does.
986-- that moment only if the old event does.