on develop help sign in
Merge pull request #166 from matthewbauer/patch-1

Fix doc for "switcher"

commit8f7df48d4595e200082549398dea4d3847dddb6e authorAlexandre Esteves <2335822+alexfmpe@users.noreply.github.com> dateThu 8 Feb 2018, 09:38 (9 years ago) parent1db982f9f04cee
1 file changed+2−2
src/Reflex/Class.hs+2−2
src/Reflex/Class.hs+2−2
@@ -363,8 +363,8 @@ instance Reflex t => Align (Event t) where
363363gate :: Reflex t => Behavior t Bool -> Event t a -> Event t a
364364gate = 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.
368368switcher :: (Reflex t, MonadHold t m)
369369 => Behavior t a -> Event t (Behavior t a) -> m (Behavior t a)
370370switcher b eb = pull . (sample <=< sample) <$> hold b eb