timeprint-0.1.0.0: src/Text/Show/TimePrint.hs
module Text.Show.TimePrint (timePrint) where
import System.IO
import Data.Time
getTime :: IO String
getTime = do
now <- getCurrentTime
return (formatTime defaultTimeLocale "%T" now)
timePrint :: Show a => a -> IO ()
timePrint a = do
s <- getTime
putStrLn $ show a ++ "\n" ++ s