Skip to content

Instantly share code, notes, and snippets.

@mizukmb
Created November 25, 2017 09:51
Show Gist options
  • Save mizukmb/be9bf3eb6fc149fe90f50e715c66d0d8 to your computer and use it in GitHub Desktop.
Save mizukmb/be9bf3eb6fc149fe90f50e715c66d0d8 to your computer and use it in GitHub Desktop.
import System.IO
main = do
todoItem <- getLine
appendFile "todo.txt" (todoItem ++ "\n")
@mizukmb
Copy link
Author

mizukmb commented Nov 25, 2017

$ cat todo.txt
Iron the dishes
Dust the dog
$ ./appendtodo
Append TODO !!
$ cat todo.txt
Iron the dishes
Dust the dog
Append TODO !!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment