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