frpnow 0.16 → 0.17
raw patch · 3 files changed
+9/−4 lines, 3 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
+ Control.FRPNow.EvStream: joinEs :: Event (EvStream b) -> EvStream b
Files
- ChangeLog +1/−0
- Control/FRPNow/EvStream.hs +7/−3
- frpnow.cabal +1/−1
ChangeLog view
@@ -1,3 +1,4 @@+0.17 Added EvStream.joinEs 0.16 Added EvStream.delay 0.15 Fixes a Prelude.undefined error 0.14 Fixes a space leak, fixes integration being factor 2 off
Control/FRPNow/EvStream.hs view
@@ -22,6 +22,7 @@ dropEv, toChanges, edges,+joinEs, -- * Folds and scans scanlEv, foldrEv,@@ -205,9 +206,12 @@ ev <- plan (loop . last <$> e') return (pure e' `switch` ev) ---+-- | Turns an event of an event stream into an event stream.+joinEs :: Event (EvStream b) -> EvStream b+joinEs e = S $ before `switch` after where+ before = join <$> plan (getEs <$> e)+ after = getEs <$> e+ -- | Left fold over an eventstream to create a behavior (behavior depends on when
frpnow.cabal view
@@ -1,5 +1,5 @@ Name: frpnow-Version: 0.16+Version: 0.17 Synopsis: Principled practical FRP Description: FRP with first-class behaviors and interalized IO, without space leaks License: BSD3