Skip to content

Instantly share code, notes, and snippets.

@dsp
Created April 17, 2012 12:05
Show Gist options
  • Save dsp/2405580 to your computer and use it in GitHub Desktop.
Save dsp/2405580 to your computer and use it in GitHub Desktop.
import System.IO
import Control.Concurrent
seconds ms = ms * 1000000
repfn fn t = do threadDelay t
fn
repfn fn t
main = repfn fn $ seconds 1
where fn = do putStr "hello world\n"
hFlush stdout
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment