on develop help sign in
Choose the over a as suggested in review, #251.
commit846e6e053a7d49db5759c05b60f1281fea2e0632 authorPhil de Joux <philderbeast@gmail.com> dateFri 4 Jan 2019, 06:21 (8 years ago) parent666d885
1 file changed+2−2
src/Reflex/Class.hs+2−2
src/Reflex/Class.hs+2−2
@@ -926,8 +926,8 @@ instance Reflex t => Align (Event t) where
926926gate :: Reflex t => Behavior t Bool -> Event t a -> Event t a
927927gate = attachWithMaybe $ \allow a -> if allow then Just a else Nothing
928928
929−-- | Create a new behavior given a starting behavior and switch to a behavior
930−-- carried by the event when it fires.
929+-- | Create a new behavior given a starting behavior and switch to the behavior
930+-- carried by the event when it fires.
931931switcher :: (Reflex t, MonadHold t m)
932932 => Behavior t a -> Event t (Behavior t a) -> m (Behavior t a)
933933switcher b eb = pull . (sample <=< sample) <$> hold b eb