Cookbook/Interactivity

From HaskellWiki
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
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