File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -63,6 +63,7 @@ module Reflex.Class
63
63
, factorEvent
64
64
, filterEventKey
65
65
-- ** Collapsing 'Event . Event'
66
+ , eventJoin
66
67
, switchHold
67
68
, switchHoldPromptly
68
69
, switchHoldPromptOnly
@@ -817,6 +818,10 @@ fanThese e =
817
818
fanMap :: (Reflex t , Ord k ) => Event t (Map k a ) -> EventSelector t (Const2 k a )
818
819
fanMap = fan . fmap mapToDMap
819
820
821
+ -- | switcHold never = eventjoin
822
+ eventJoin :: (Reflex t , MonadHold t m ) => Event t (Event t a ) -> m (Event t a )
823
+ eventJoin = switchHold never
824
+
820
825
-- | Switches to the new event whenever it receives one. Only the old event is
821
826
-- considered the moment a new one is switched in; the output event will fire at
822
827
-- that moment if only if the old event does.
You can’t perform that action at this time.
0 commit comments