Created
October 15, 2015 19:39
-
-
Save teh/386a6b2636865a213ff4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Data.ReactiveValue ((=:>), ReactiveFieldWrite(..), ReactiveFieldRead(..)) | |
import Hails.Polling (pollingReactive) | |
main :: IO () | |
main = do | |
hello <- pollingReactive (return "hello") (Just 1000000) | |
let out = ReactiveFieldWrite print | |
hello =:> out | |
getLine >> return () |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment