Guest User

Untitled

a guest
Jan 21st, 2019
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. prompt :: [String] -> IO ()
  2. prompt todos = do
  3. putStrLn "The list contains:"
  4. mapM_ putTodo (zip [0..] todos)
  5. putStrLn " "
  6. command <- getLine
  7. getCommand command todos
  8.  
  9. main = do
  10. outh <- openFile "agenda.txt" WriteMode;
  11. hPutStrLn outh prompt[]
  12.  
  13. -- hPutStrLn outh (show prompt[])
  14. -- hPrint (show prompt[])
  15. hClose outh;
Add Comment
Please, Sign In to add comment