reactive 0.10.1 → 0.10.2
raw patch · 2 files changed
+3/−3 lines, 2 files
Files
- reactive.cabal +1/−1
- src/FRP/Reactive/Behavior.hs +2/−2
reactive.cabal view
@@ -1,5 +1,5 @@ Name: reactive-Version: 0.10.1+Version: 0.10.2 Synopsis: Simple foundation for functional reactive programming Category: reactivity, FRP Description:
src/FRP/Reactive/Behavior.hs view
@@ -119,7 +119,7 @@ -- 'snapshotWith'. Take careful note of the order of arguments and -- results. -- --- > snapshot :: Event a -> Behavior b -> Event (a,b)+-- > snapshot :: Behavior b -> Event a -> Event (a,b) snapshot :: Ord t => BehaviorI t b -> EventI t a -> EventI t (a,b) snapshot = snapshotWith (,) @@ -133,7 +133,7 @@ -- | Like 'snapshot' but discarding event data (often @a@ is '()'). -- --- > snapshot_ :: Event a -> Behavior b -> Event b+-- > snapshot_ :: Behavior b -> Event a -> Event b snapshot_ :: Ord t => BehaviorI t b -> EventI t a -> EventI t b snapshot_ = snapshotWith (flip const)