keter/test/process-torun2.hs
Michael Snoyman 379359c779 Keter.Process
2012-05-06 13:29:18 +03:00

11 lines
234 B
Haskell

import Control.Concurrent
import Data.Time
import Control.Monad
import System.IO
main = withFile "process2.txt" WriteMode $ \h -> forever $ do
now <- getCurrentTime
hPutStrLn h $ show now
hFlush h
threadDelay 1000000