Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

IO added

  • Loading branch information...
commit 4a831da1e73d93f4f2ca4d1feb85b174c60e75aa 1 parent 37a8051
@maloi maloi authored
Showing with 26 additions and 0 deletions.
  1. +26 −0 index.html
View
26 index.html
@@ -930,6 +930,32 @@
</ul>
</div>
<div class="slide">
+ <h1>Monad - IO</h1>
+ <ul class="incremental">
+ <li style="list-style-type: none;">
+ <pre class="sh_haskell">import Data.Char
+
+main = do
+ putStrLn "What's your first name?"
+ firstName <- getLine
+ putStrLn "What's your last name?"
+ lastName <- getLine
+ let bigFirstName = map toUpper firstName
+ bigLastName = map toUpper lastName
+ putStrLn $ "hey " ++ bigFirstName ++ " " ++ bigLastName ++ ", how are you?"</pre>
+ </li>
+ <li style="list-style-type: none;">
+ <pre class="sh_haskell">*Main> main
+What's your first name?
+Hasi
+What's your last name?
+Hasenmann
+hey HASI HASENMANN, how are you?
+*Main></pre>
+ </li>
+ </ul>
+</div>
+<div class="slide">
<h1>Real World Haskell, Chapter 16: Parsec</h1>
<pre class="sh_haskell">import Text.ParserCombinators.Parsec
Please sign in to comment.
Something went wrong with that request. Please try again.