Cookbook/Interactivity
From HaskellWiki
(Difference between revisions)
(→Printing a string) |
|||
| Line 27: | Line 27: | ||
|} | |} | ||
| - | + | ||
| - | + | ||
| - | + | ||
| - | + | ||
| - | + | ||
| - | + | ||
| - | + | ||
| - | + | ||
| - | + | ||
| - | + | ||
| - | + | ||
| - | + | ||
| - | + | ||
| - | + | ||
| - | + | ||
| - | + | ||
| - | + | ||
| - | + | ||
| - | + | ||
| - | + | ||
| - | + | ||
== Parsing command line arguments == | == Parsing command line arguments == | ||
TODO | TODO | ||
Revision as of 09:04, 2 August 2009
| Problem | Solution | Examples |
|---|---|---|
| printing a string | putStr | Prelude> putStr "Foo" FooPrelude> |
| printing a string in a new line | putStrLn | Prelude> putStrLn "Foo" Foo |
| reading a string | getLine | Prelude> getLine Foo bar baz --> "Foo bar baz" |
Parsing command line arguments
TODO
