Skip to content

Commit 5eeb5d0

Browse files
committed
Remove helper function in favor of updating docs
1 parent c603a28 commit 5eeb5d0

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/Reflex/Class.hs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@ module Reflex.Class
7676
, factorEvent
7777
, filterEventKey
7878
-- ** Collapsing 'Event . Event'
79-
, eventJoin
8079
, switchHold
8180
, switchHoldPromptly
8281
, switchHoldPromptOnly
@@ -287,7 +286,8 @@ class ( MonadHold t (PushM t)
287286
-- | Create an 'Event' that will occur whenever the currently-selected input
288287
-- 'Event' occurs
289288
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.
291291
coincidence :: Event t (Event t a) -> Event t a
292292
-- | Extract the 'Behavior' of a 'Dynamic'.
293293
current :: Dynamic t a -> Behavior t a
@@ -981,10 +981,6 @@ fanThese e =
981981
fanMap :: (Reflex t, Ord k) => Event t (Map k a) -> EventSelector t (Const2 k a)
982982
fanMap = fan . fmap mapToDMap
983983

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-
988984
-- | Switches to the new event whenever it receives one. Only the old event is
989985
-- considered the moment a new one is switched in; the output event will fire at
990986
-- that moment only if the old event does.

0 commit comments

Comments
 (0)