1
1
mirror of https://github.com/sdiehl/wiwinwlh.git synced 2024-08-17 07:50:22 +03:00

fix monad line breaks

This commit is contained in:
Stephen Diehl 2016-12-13 11:08:17 +00:00
parent cb9219c144
commit f07e724461
3 changed files with 13 additions and 5 deletions

View File

@ -47,7 +47,7 @@ Chapter Code Examples:
* [29-ghc/ ](https://github.com/sdiehl/wiwinwlh/tree/master/src/29-ghc/)
* [30-languages/ ](https://github.com/sdiehl/wiwinwlh/tree/master/src/30-languages/)
* [31-template-haskell/ ](https://github.com/sdiehl/wiwinwlh/tree/master/src/31-template-haskell/)
* [32-template-haskell/ ](https://github.com/sdiehl/wiwinwlh/tree/master/src/32-cryptography/)
* [32-cryptography ](https://github.com/sdiehl/wiwinwlh/tree/master/src/32-cryptography/)
* [33-categories/ ](https://github.com/sdiehl/wiwinwlh/tree/master/src/33-categories/)
Contributing

View File

@ -1,4 +1,5 @@
\documentclass[$if(fontsize)$$fontsize$,$endif$$if(lang)$$babel-lang$,$endif$$if(papersize)$$papersize$paper,$endif$$for(classoption)$$classoption$$sep$,$endfor$]{$documentclass$}
\usepackage[top=1cm, bottom=1.25cm, left=1cm, right=1cm]{geometry}
$if(fontfamily)$
\usepackage[$for(fontfamilyoptions)$$fontfamilyoptions$$sep$,$endfor$]{$fontfamily$}
$else$

View File

@ -1863,14 +1863,12 @@ and then the next ``putStrLn`` is executed.
```haskell
main :: IO ()
main = putStrLn "Vesihiisi sihisi hississäään." >>=
\_ -> putStrLn "Or in English: 'The water devil was hissing
in her elevator'."
\_ -> putStrLn "Or in English: 'The water devil was hissing in her elevator'."
-- Sugared code, written with do notation
main :: IO ()
main = do putStrLn "Vesihiisi sihisi hississäään."
putStrLn "Or in English: 'The water devil was hissing in her
elevator'."
putStrLn "Or in English: 'The water devil was hissing in her elevator'."
```
Another useful function is ``getLine`` which has type ``IO String``. This
@ -4121,6 +4119,15 @@ Foundation
TODO
~~~~ {.haskell include="src/06-prelude/foundation.hs"}
~~~~
**Strings and Bytearrays**
**Container Interface**
**Numerical Tower**
See: [Foundation](https://github.com/haskell-foundation/foundation)
<hr/>