summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorConalElliott <>2008-12-08 23:37:50 (GMT)
committerLuite Stegeman <luite@luite.com>2008-12-08 23:37:50 (GMT)
commit02976288b103e29ff2c43000a80ec61a8a753510 (patch)
treeb8bfd5ee5fc92b5d156e027a37d980b09347c9b8 /src
parent4563fd521b1841b41a3df79748815fe989732a14 (diff)
version 0.10.20.10.2
Diffstat (limited to 'src')
-rwxr-xr-xsrc/FRP/Reactive/Behavior.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/FRP/Reactive/Behavior.hs b/src/FRP/Reactive/Behavior.hs
index b7113a9..b6e6a40 100755
--- a/src/FRP/Reactive/Behavior.hs
+++ b/src/FRP/Reactive/Behavior.hs
@@ -119,7 +119,7 @@ snapshotWith h b e = f <$> (unb b `R.snapshot` withTimeE e)
-- '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 @@ snapshot = snapshotWith (,)
-- | 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)