on develop help sign in
Fix doc for "switcher"

A small fix for a typo in Reflex.Class.

commit9f04cee54abba90aa49f2d59c6ac4a65ffe6f78d authorMatthew Justin Bauer <mjbauer95@gmail.com> dateWed 7 Feb 2018, 22:20 (9 years ago) parent1db982f
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