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:
parent
cb9219c144
commit
f07e724461
@ -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
|
||||
|
@ -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$
|
||||
|
15
tutorial.md
15
tutorial.md
@ -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/>
|
||||
|
Loading…
Reference in New Issue
Block a user