Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- prompt :: [String] -> IO ()
- prompt todos = do
- putStrLn "The list contains:"
- mapM_ putTodo (zip [0..] todos)
- putStrLn " "
- command <- getLine
- getCommand command todos
- main = do
- outh <- openFile "agenda.txt" WriteMode;
- hPutStrLn outh prompt[]
- -- hPutStrLn outh (show prompt[])
- -- hPrint (show prompt[])
- hClose outh;
Add Comment
Please, Sign In to add comment