Skip to content

Instantly share code, notes, and snippets.

@teh
Created October 15, 2015 19:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save teh/386a6b2636865a213ff4 to your computer and use it in GitHub Desktop.
Save teh/386a6b2636865a213ff4 to your computer and use it in GitHub Desktop.
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