【文件属性】:
文件名称:Haskell-Reactive-Extensions:在Haskell中实现React式扩展
文件大小:74KB
文件格式:ZIP
更新时间:2021-05-01 00:09:42
Haskell
HaskellReact性扩展
这是Haskell中Rx的实验性实现
例子
使用同步调度程序:
module Main where
import qualified Rx.Observable as Rx
main :: IO ()
main = do
let source = Rx. fromList Rx. currentThread [ 1 .. 10 ]
result <- Rx. subscribe source print print ( putStrLn " Stream Done " )
使用异步调度程序(只能通过异步进行单调组成):
module Main where
import Control.Applicative ( (<$>) , (<*>) )
import Control.Lens ( (&) , (.~) , (^?) )
import Da
【文件预览】:
Haskell-Reactive-Extensions-master
----circle.yml(439B)
----.ghci(44B)
----rx-core()
--------Setup.hs(46B)
--------src()
--------bench()
--------rx-core.cabal(2KB)
--------LICENSE(1KB)
--------test()
--------.gitignore(40B)
----rx-disposable()
--------Setup.hs(46B)
--------src()
--------LICENSE(1KB)
--------test()
--------rx-disposable.cabal(969B)
----LICENSE(1KB)
----README.md(5KB)
----rx-scheduler()
--------Setup.hs(46B)
--------.ghci(10B)
--------src()
--------LICENSE(1KB)
--------rx-scheduler.cabal(692B)
----stack.yaml(129B)
----rx-extra()
--------Setup.hs(46B)
--------rx-extra.cabal(1KB)
--------src()
--------LICENSE(1KB)
--------test()
----.gitignore(83B)
----rx-logger()
--------Setup.hs(46B)
--------.ghci(17B)
--------src()
--------example()
--------LICENSE(0B)
--------test()
--------.stylish-haskell.yaml(3KB)
--------.gitignore(44B)
--------rx-logger.cabal(2KB)