git.iko.soy/purescript-stream
on master help sign in
5 files changed+41−1
since splitsnapshots
unifiedsplit
CHANGELOG.md+10 README.md+28 package.json+1−1 src/Control/Stream.purs+1 src/Control/Stream/Stream.purs+1
CHANGELOG.md+10
@@ -1,3 +1,13 @@
1+<a name="0.2.0"></a>
2+# [0.2.0](https://github.com/TylorS/purescript-stream/compare/v0.1.0...v0.2.0) (2017-03-21)
3+
4+
5+### Bug Fixes
6+
7+* **Stream:** add missing filter import ([d4e1c8e](https://github.com/TylorS/purescript-stream/commit/d4e1c8e))
8+
9+
10+
111<a name="0.1.0"></a>
212# [0.1.0](https://github.com/TylorS/purescript-stream/compare/6b75d2f...v0.1.0) (2017-03-16)
313
README.mdnew file+28
@@ -0,0 +1,28 @@
1+# Purescript Stream
2+
3+> An ultra-fast reactive stream library for purescript
4+
5+## Let me have it
6+```sh
7+bower install --save purescript-stream
8+```
9+
10+## Basic usage
11+```purescript
12+module Main where
13+
14+import Prelude
15+import Control.Monad.Eff (Eff)
16+import Control.Monad.Eff.Console (CONSOLE, logShow, log)
17+import Control.Stream (STREAM, periodic, constant, scan, tapEvent, tapEnd, drain)
18+import Data.Unit (Unit)
19+
20+main :: Eff (stream :: STREAM, console :: CONSOLE) Unit
21+main = do
22+ periodic 1000.0 -- Stream Unit
23+ # constant 1 -- Stream Int
24+ # scan (+) 0 -- Stream Int
25+ # tapEvent logShow -- Perform side-effects on events
26+ # tapEnd (log "done") -- Perform a side-effect on stream completion
27+ # drain -- activate your stream
28+```
package.json+1−1
@@ -1,6 +1,6 @@
11{
22 "name": "purescript-stream",
3− "version": "0.1.0",
3+ "version": "0.2.0",
44 "description": "",
55 "main": "index.js",
66 "scripts": {
src/Control/Stream.purs+1
@@ -21,6 +21,7 @@ import Control.Stream.Stream
2121 , tapEvent
2222 , tapEnd
2323 , fromArray
24+ , filter
2425 , take
2526 , skip
2627 , constant
src/Control/Stream/Stream.purs+1
@@ -13,6 +13,7 @@ module Control.Stream.Stream
1313 , tapEvent
1414 , tapEnd
1515 , fromArray
16+ , filter
1617 , take
1718 , skip
1819 , constant