regeneration
This commit is contained in:
parent
3be44696c9
commit
8acdf479a7
9 changed files with 21 additions and 21 deletions
|
@ -191,7 +191,7 @@ main = do
|
|||
print ("Hello " ++ name ++ "!")
|
||||
</code>
|
||||
</div>
|
||||
First, let us compare with a similar program in other imperative languages:
|
||||
First, let us compare with a similar program in some imperative languages:
|
||||
|
||||
<code class="python">
|
||||
# Python
|
||||
|
@ -227,7 +227,7 @@ In Haskell, there is a `main` function and every object has a type.
|
|||
The type of `main` is `IO ()`.
|
||||
This means, `main` will cause side effects.
|
||||
|
||||
Just remember that Haskell can look a lot like other imperative languages.
|
||||
Just remember that Haskell can look a lot like mainstream imperative languages.
|
||||
|
||||
<a href="code/01_basic/10_Introduction/10_hello_you.lhs" class="cut">01_basic/10_Introduction/<strong>10_hello_you.lhs</strong> </a>
|
||||
|
||||
|
@ -264,7 +264,7 @@ Furthermore there is an essential respected law in Haskell:
|
|||
|
||||
_Laziness_
|
||||
|
||||
This is a very uncommon feature.
|
||||
Laziness by default is a very uncommon language design.
|
||||
By default, Haskell evaluate something only when it is needed.
|
||||
As consequence, it provides a very elegant way to manipulate infinite structures for example.
|
||||
|
||||
|
|
|
@ -197,7 +197,7 @@ main = do
|
|||
print ("Hello " ++ name ++ "!")
|
||||
</code>
|
||||
</div>
|
||||
First, let us compare with a similar program in other imperative languages:
|
||||
First, let us compare with a similar program in some imperative languages:
|
||||
|
||||
<code class="python">
|
||||
# Python
|
||||
|
@ -233,7 +233,7 @@ In Haskell, there is a `main` function and every object has a type.
|
|||
The type of `main` is `IO ()`.
|
||||
This means, `main` will cause side effects.
|
||||
|
||||
Just remember that Haskell can look a lot like other imperative languages.
|
||||
Just remember that Haskell can look a lot like mainstream imperative languages.
|
||||
|
||||
<a href="code/01_basic/10_Introduction/10_hello_you.lhs" class="cut">01_basic/10_Introduction/<strong>10_hello_you.lhs</strong> </a>
|
||||
|
||||
|
@ -270,7 +270,7 @@ Furthermore there is an essential respected law in Haskell:
|
|||
|
||||
_Laziness_
|
||||
|
||||
This is a very uncommon feature.
|
||||
Laziness by default is a very uncommon language design.
|
||||
By default, Haskell evaluate something only when it is needed.
|
||||
As consequence, it provides a very elegant way to manipulate infinite structures for example.
|
||||
|
||||
|
|
|
@ -250,7 +250,7 @@ main = do
|
|||
print ("Hello " ++ name ++ "!")
|
||||
</code>
|
||||
</div>
|
||||
First, let us compare with a similar program in other imperative languages:
|
||||
First, let us compare with a similar program in some imperative languages:
|
||||
|
||||
<code class="python">
|
||||
# Python
|
||||
|
@ -286,7 +286,7 @@ In Haskell, there is a `main` function and every object has a type.
|
|||
The type of `main` is `IO ()`.
|
||||
This means, `main` will cause side effects.
|
||||
|
||||
Just remember that Haskell can look a lot like other imperative languages.
|
||||
Just remember that Haskell can look a lot like mainstream imperative languages.
|
||||
|
||||
<a href="code/01_basic/10_Introduction/10_hello_you.lhs" class="cut">01_basic/10_Introduction/<strong>10_hello_you.lhs</strong> </a>
|
||||
|
||||
|
@ -323,7 +323,7 @@ Furthermore there is an essential respected law in Haskell:
|
|||
|
||||
_Laziness_
|
||||
|
||||
This is a very uncommon feature.
|
||||
Laziness by default is a very uncommon language design.
|
||||
By default, Haskell evaluate something only when it is needed.
|
||||
As consequence, it provides a very elegant way to manipulate infinite structures for example.
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ Now, a program asking your name and reply "Hello" using the name you entered:
|
|||
> name <- getLine
|
||||
> print ("Hello " ++ name ++ "!")
|
||||
|
||||
First, let us compare with a similar program in other imperative languages:
|
||||
First, let us compare with a similar program in some imperative languages:
|
||||
|
||||
<code class="python">
|
||||
# Python
|
||||
|
@ -41,4 +41,4 @@ In Haskell, there is a `main` function and every object has a type.
|
|||
The type of `main` is `IO ()`.
|
||||
This means, `main` will cause side effects.
|
||||
|
||||
Just remember that Haskell can look a lot like other imperative languages.
|
||||
Just remember that Haskell can look a lot like mainstream imperative languages.
|
||||
|
|
|
@ -29,7 +29,7 @@ Furthermore there is an essential respected law in Haskell:
|
|||
|
||||
_Laziness_
|
||||
|
||||
This is a very uncommon feature.
|
||||
Laziness by default is a very uncommon language design.
|
||||
By default, Haskell evaluate something only when it is needed.
|
||||
As consequence, it provides a very elegant way to manipulate infinite structures for example.
|
||||
|
||||
|
|
|
@ -297,7 +297,7 @@ main = <span class="Keyword">do</span>
|
|||
<span class="Entity">print</span> (<span class="String"><span class="String">"</span>Hello <span class="String">"</span></span> ++ name ++ <span class="String"><span class="String">"</span>!<span class="String">"</span></span>)
|
||||
</pre>
|
||||
</div>
|
||||
<p>First, let us compare with a similar program in other imperative languages:</p>
|
||||
<p>First, let us compare with a similar program in some imperative languages:</p>
|
||||
|
||||
<pre class="twilight">
|
||||
<span class="Comment"><span class="Comment">#</span> Python</span>
|
||||
|
@ -333,7 +333,7 @@ A major part of this tutorial will explain why.</p>
|
|||
The type of <code>main</code> is <code>IO ()</code>.
|
||||
This means, <code>main</code> will cause side effects.</p>
|
||||
|
||||
<p>Just remember that Haskell can look a lot like other imperative languages.</p>
|
||||
<p>Just remember that Haskell can look a lot like mainstream imperative languages.</p>
|
||||
|
||||
<p><a href="code/01_basic/10_Introduction/10_hello_you.lhs" class="cut">01_basic/10_Introduction/<strong>10_hello_you.lhs</strong> </a></p>
|
||||
|
||||
|
@ -373,7 +373,7 @@ Most bug will be prevented in pure part of your program.</p>
|
|||
|
||||
<p><em>Laziness</em></p>
|
||||
|
||||
<p>This is a very uncommon feature.
|
||||
<p>Laziness by default is a very uncommon language design.
|
||||
By default, Haskell evaluate something only when it is needed.
|
||||
As consequence, it provides a very elegant way to manipulate infinite structures for example. </p>
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ Now, a program asking your name and reply "Hello" using the name you entered:
|
|||
> name <- getLine
|
||||
> print ("Hello " ++ name ++ "!")
|
||||
|
||||
First, let us compare with a similar program in other imperative languages:
|
||||
First, let us compare with a similar program in some imperative languages:
|
||||
|
||||
<code class="python">
|
||||
# Python
|
||||
|
@ -41,4 +41,4 @@ In Haskell, there is a `main` function and every object has a type.
|
|||
The type of `main` is `IO ()`.
|
||||
This means, `main` will cause side effects.
|
||||
|
||||
Just remember that Haskell can look a lot like other imperative languages.
|
||||
Just remember that Haskell can look a lot like mainstream imperative languages.
|
||||
|
|
|
@ -29,7 +29,7 @@ Furthermore there is an essential respected law in Haskell:
|
|||
|
||||
_Laziness_
|
||||
|
||||
This is a very uncommon feature.
|
||||
Laziness by default is a very uncommon language design.
|
||||
By default, Haskell evaluate something only when it is needed.
|
||||
As consequence, it provides a very elegant way to manipulate infinite structures for example.
|
||||
|
||||
|
|
|
@ -304,7 +304,7 @@ main = <span class="Keyword">do</span>
|
|||
<span class="Entity">print</span> (<span class="String"><span class="String">"</span>Hello <span class="String">"</span></span> ++ name ++ <span class="String"><span class="String">"</span>!<span class="String">"</span></span>)
|
||||
</pre>
|
||||
</div>
|
||||
<p>First, let us compare with a similar program in other imperative languages:</p>
|
||||
<p>First, let us compare with a similar program in some imperative languages:</p>
|
||||
|
||||
<pre class="twilight">
|
||||
<span class="Comment"><span class="Comment">#</span> Python</span>
|
||||
|
@ -340,7 +340,7 @@ A major part of this tutorial will explain why.</p>
|
|||
The type of <code>main</code> is <code>IO ()</code>.
|
||||
This means, <code>main</code> will cause side effects.</p>
|
||||
|
||||
<p>Just remember that Haskell can look a lot like other imperative languages.</p>
|
||||
<p>Just remember that Haskell can look a lot like mainstream imperative languages.</p>
|
||||
|
||||
<p><a href="code/01_basic/10_Introduction/10_hello_you.lhs" class="cut">01_basic/10_Introduction/<strong>10_hello_you.lhs</strong> </a></p>
|
||||
|
||||
|
@ -380,7 +380,7 @@ Most bug will be prevented in pure part of your program.</p>
|
|||
|
||||
<p><em>Laziness</em></p>
|
||||
|
||||
<p>This is a very uncommon feature.
|
||||
<p>Laziness by default is a very uncommon language design.
|
||||
By default, Haskell evaluate something only when it is needed.
|
||||
As consequence, it provides a very elegant way to manipulate infinite structures for example. </p>
|
||||
|
||||
|
|
Loading…
Reference in a new issue