o-clock-0.0.0: examples/Playground.hs
{-# LANGUAGE ScopedTypeVariables #-}
module Main where
import Time (Second, Time, threadDelay)
main :: IO ()
main = do
let twoSecs = 2 :: Time Second
putStrLn "Hello!"
threadDelay twoSecs
putStrLn "Hello after 2 seconds"