RosettaCodeData/Task/Sleep/Haskell/sleep.hs
2023-07-01 13:44:08 -04:00

6 lines
166 B
Haskell

import Control.Concurrent
main = do seconds <- readLn
putStrLn "Sleeping..."
threadDelay $ round $ seconds * 1000000
putStrLn "Awake!"