Skip to content

Commit 8f7df48

Browse files
authored
Merge pull request #166 from matthewbauer/patch-1
Fix doc for "switcher"
2 parents 1db982f + 9f04cee commit 8f7df48

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Reflex/Class.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -363,8 +363,8 @@ instance Reflex t => Align (Event t) where
363363
gate :: Reflex t => Behavior t Bool -> Event t a -> Event t a
364364
gate = attachWithMaybe $ \allow a -> if allow then Just a else Nothing
365365

366-
-- | Create a new behavior given a starting behavior and switch to a the
367-
-- behvior carried by the event when it fires.
366+
-- | Create a new behavior given a starting behavior and switch to the
367+
-- behavior carried by the event when it fires.
368368
switcher :: (Reflex t, MonadHold t m)
369369
=> Behavior t a -> Event t (Behavior t a) -> m (Behavior t a)
370370
switcher b eb = pull . (sample <=< sample) <$> hold b eb

0 commit comments

Comments
 (0)