Skip to content

Commit b0c2650

Browse files
author
Gregory Cox
committed
Change <i> tags to <em> in HTML
1 parent 9f9f041 commit b0c2650

15 files changed

+224
-218
lines changed

docs/a-fistful-of-monads.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ <h1 id="a-fistful-of-monads">A Fistful of Monads</h1>
101101

102102
<p>
103103
Like we said, an applicative value can be seen as a value with an added context.
104-
A <i>fancy</i> value, to put it in technical terms. For instance, the character
104+
A <em>fancy</em> value, to put it in technical terms. For instance, the character
105105
<span class="fixed">'a'</span> is just a normal character, whereas
106106
<span class="fixed">Just 'a'</span> has some added context. Instead of a
107107
<span class="fixed">Char</span>, we have a <span class="fixed">Maybe Char</span>,
@@ -152,7 +152,7 @@ <h1 id="a-fistful-of-monads">A Fistful of Monads</h1>
152152
<span class="fixed">m a</span> instead of <span class="fixed">f a</span> because
153153
the <span class="fixed">m</span> stands for <span class="fixed">Monad</span>, but monads are just
154154
applicative functors that support <span class="fixed">&gt;&gt;=</span>. The
155-
<span class="fixed">&gt;&gt;=</span> function is pronounced as <i>bind</i>.
155+
<span class="fixed">&gt;&gt;=</span> function is pronounced as <em>bind</em>.
156156
</p>
157157

158158
<p>

docs/assets/css/style.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ p {
3535
a:hover {
3636
text-decoration:none;
3737
}
38+
em {
39+
font-style:italic;
40+
}
3841
strong {
3942
font-style:normal;
4043
font-weight:bold;

docs/functionally-solving-problems.html

Lines changed: 9 additions & 9 deletions
Large diffs are not rendered by default.

docs/functors-applicative-functors-and-monoids.html

Lines changed: 75 additions & 75 deletions
Large diffs are not rendered by default.

docs/higher-order-functions.html

Lines changed: 10 additions & 10 deletions
Large diffs are not rendered by default.

docs/input-and-output.html

Lines changed: 62 additions & 62 deletions
Large diffs are not rendered by default.

docs/introduction.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ <h2 id="so-whats-haskell">So what’s Haskell?</h2>
5454
<p>
5555
<img src="assets/images/introduction/fx.png" class="right" width="150" height="146" alt="fx">
5656
Haskell is a <strong>purely functional programming language</strong>.
57-
In imperative languages you get things done by giving the computer a sequence of tasks and then it executes them. While executing them, it can change state. For instance, you set variable <span class="fixed">a</span> to 5 and then do some stuff and then set it to something else. You have control flow structures for doing some action several times. In purely functional programming you don’t tell the computer what to do as such but rather you tell it what stuff <i>is</i>. The factorial of a number is the product of all the numbers from 1 to that number, the sum of a list of numbers is the first number plus the sum of all the other numbers, and so on. You express that in the form of functions. You also can’t set a variable to something and then set it to something else later. If you say that <span class="fixed">a</span> is 5, you can’t say it’s something else later because you just said it was 5. What are you, some kind of liar? So in purely functional languages, a function has no side-effects. The only thing a function can do is calculate something and return it as a result. At first, this seems kind of limiting but it actually has some very nice consequences: if a function is called twice with the same parameters, it’s guaranteed to return the same result. That’s called referential transparency and not only does it allow the compiler to reason about the program’s behavior, but it also allows you to easily deduce (and even prove) that a function is correct and then build more complex functions by gluing simple functions together.
57+
In imperative languages you get things done by giving the computer a sequence of tasks and then it executes them. While executing them, it can change state. For instance, you set variable <span class="fixed">a</span> to 5 and then do some stuff and then set it to something else. You have control flow structures for doing some action several times. In purely functional programming you don’t tell the computer what to do as such but rather you tell it what stuff <em>is</em>. The factorial of a number is the product of all the numbers from 1 to that number, the sum of a list of numbers is the first number plus the sum of all the other numbers, and so on. You express that in the form of functions. You also can’t set a variable to something and then set it to something else later. If you say that <span class="fixed">a</span> is 5, you can’t say it’s something else later because you just said it was 5. What are you, some kind of liar? So in purely functional languages, a function has no side-effects. The only thing a function can do is calculate something and return it as a result. At first, this seems kind of limiting but it actually has some very nice consequences: if a function is called twice with the same parameters, it’s guaranteed to return the same result. That’s called referential transparency and not only does it allow the compiler to reason about the program’s behavior, but it also allows you to easily deduce (and even prove) that a function is correct and then build more complex functions by gluing simple functions together.
5858
</p>
5959
<p>
6060
<img src="assets/images/introduction/lazy.png" class="right" width="240" height="209" alt="lazy">

0 commit comments

Comments
 (0)