Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,12 @@
|
|||
import System.Environment (getArgs)
|
||||
import System.Time (getClockTime)
|
||||
|
||||
main :: IO ()
|
||||
main = do
|
||||
args <- getArgs
|
||||
if null args
|
||||
then catch (readFile "notes.txt" >>= putStr)
|
||||
(\_ -> return ())
|
||||
else
|
||||
do ct <- getClockTime
|
||||
appendFile "notes.txt" $ show ct ++ "\n\t" ++ unwords args ++ "\n"
|
||||
Loading…
Add table
Add a link
Reference in a new issue