Personal tools

Cookbook/Interactivity

From HaskellWiki

< Cookbook(Difference between revisions)
Jump to: navigation, search
Current revision (09:08, 2 August 2009) (edit) (undo)
 
Line 1: Line 1:
 +
== Input and output ==
 +
{| class="wikitable"
{| class="wikitable"
|-
|-

Current revision

1 Input and output

Problem Solution Examples
printing a string putStr
Prelude> putStr "Foo"
FooPrelude>
printing a string with a newline character putStrLn
Prelude> putStrLn "Foo"
Foo
Prelude>
reading a string getLine
Prelude> getLine
Foo bar baz          --> "Foo bar baz"


2 Parsing command line arguments

TODO