3> An ultra-fast reactive stream library for purescript
7bower install --save purescript-stream
15import Control.Monad.Eff (Eff)
16import Control.Monad.Eff.Console (CONSOLE, logShow, log)
17import Control.Stream (STREAM, periodic, constant, scan, tapEvent, tapEnd, drain)
18import Data.Unit (Unit)
20main :: Eff (stream :: STREAM, console :: CONSOLE) Unit
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
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list