Difference between revisions of "Cookbook/Interactivity"
< Cookbook
Jump to navigation
Jump to search
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
+ | == Input and output == |
||
+ | |||
{| class="wikitable" |
{| class="wikitable" |
||
|- |
|- |
||
Line 12: | Line 14: | ||
</haskell> |
</haskell> |
||
|- |
|- |
||
− | | printing a string |
+ | | printing a string with a newline character |
| [http://haskell.org/ghc/docs/latest/html/libraries/base/Prelude.html#v%3AputStrLn putStrLn] |
| [http://haskell.org/ghc/docs/latest/html/libraries/base/Prelude.html#v%3AputStrLn putStrLn] |
||
|<haskell> |
|<haskell> |
||
Prelude> putStrLn "Foo" |
Prelude> putStrLn "Foo" |
||
Foo |
Foo |
||
+ | Prelude> |
||
</haskell> |
</haskell> |
||
|- |
|- |