packages feed

reactive 0.9.5 → 0.9.6

raw patch · 2 files changed

+3/−6 lines, 2 files

Files

reactive.cabal view
@@ -1,5 +1,5 @@ Name:                reactive-Version:             0.9.5+Version:             0.9.6 Synopsis:            Simple foundation for functional reactive programming Category:            reactivity, FRP Description:
src/FRP/Reactive/Behavior.hs view
@@ -59,7 +59,7 @@ --  -- > time :: Behavior TimeT time :: Ord t => BehaviorI t t-time = beh (point (fun id))+time = beh (pure (fun id))  -- Turn a reactive value into a discretly changing behavior. rToB :: ReactiveI t a -> BehaviorI t a@@ -98,8 +98,6 @@ -- using the combining function passed. --  -- > snapshotWith :: (a -> b -> c) -> Event a -> Behavior b -> Event c--- snapshotWith :: Ord t =>---                 (a -> b -> c) -> EventG t a -> ReactiveG t b -> EventG t c snapshotWith :: Ord t =>                 (a -> b -> c)              -> EventI t a -> BehaviorI t b -> EventI t c@@ -244,10 +242,9 @@ countB = result rToB R.countR  -- | Euler integral.+--  -- > integral :: (VectorSpace v, Scalar v ~ TimeT) => -- >             Event () -> Behavior v -> Behavior v--- integral :: (VectorSpace v, Scalar v ~ TimeT) =>---             EventI t () -> BehaviorI t v -> BehaviorI t v integral :: (Scalar v ~ t, Ord t, VectorSpace v, Num t) =>             EventI t a -> BehaviorI t v -> BehaviorI t v integral t = sumB . snapshotWith (*^) (diffE (t `snapshot_` time))