Skip to content

Commit 7ef47af

Browse files
author
Ryan Trinkle
authored
Merge pull request #310 from endgame/fan-haddock
fan: Rewrite haddock
2 parents eefb776 + e9c1aa1 commit 7ef47af

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Reflex/Class.hs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -257,10 +257,10 @@ class ( MonadHold t (PushM t)
257257
-- least one input event is occurring, and will contain all of the input keys
258258
-- that are occurring simultaneously
259259
merge :: GCompare k => DMap k (Event t) -> Event t (DMap k Identity) --TODO: Generalize to get rid of DMap use --TODO: Provide a type-level guarantee that the result is not empty
260-
-- | Efficiently fan-out an event to many destinations. This function should
261-
-- be partially applied, and then the result applied repeatedly to create
262-
-- child events
263-
fan :: GCompare k => Event t (DMap k Identity) -> EventSelector t k --TODO: Can we help enforce the partial application discipline here? The combinator is worthless without it
260+
-- | Efficiently fan-out an event to many destinations. You should save the
261+
-- result in a @let@-binding, and then repeatedly 'select' on the result to
262+
-- create child events
263+
fan :: GCompare k => Event t (DMap k Identity) -> EventSelector t k
264264
-- | Create an 'Event' that will occur whenever the currently-selected input
265265
-- 'Event' occurs
266266
switch :: Behavior t (Event t a) -> Event t a

0 commit comments

Comments
 (0)