Skip to content

Commit 78130d9

Browse files
author
Gregory Cox
committed
Change order of attributes in img tags
1 parent 1835e55 commit 78130d9

15 files changed

+127
-127
lines changed

docs/a-fistful-of-monads.html

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ <h1 id="a-fistful-of-monads">A Fistful of Monads</h1>
4747
applicative functors are only beefed up functors.
4848
</p>
4949

50-
<img src="assets/images/a-fistful-of-monads/smugpig.png" alt="more cool than u" class="right" width="307" height="186">
50+
<img src="assets/images/a-fistful-of-monads/smugpig.png" class="right" width="307" height="186" alt="more cool than u">
5151

5252
<p>
5353
When we started off with functors, we saw that it’s possible to map functions
@@ -168,7 +168,7 @@ <h1 id="a-fistful-of-monads">A Fistful of Monads</h1>
168168

169169
<h2 id="getting-our-feet-wet-with-maybe">Getting our feet wet with Maybe</h2>
170170

171-
<img src="assets/images/a-fistful-of-monads/buddha.png" alt="monads, grasshoppa" class="left" width="302" height="387">
171+
<img src="assets/images/a-fistful-of-monads/buddha.png" class="left" width="302" height="387" alt="monads, grasshoppa">
172172

173173
<p>
174174
Now that we have a vague idea of what monads are about, let’s see if we can make
@@ -393,7 +393,7 @@ <h2 id="the-monad-type-class">The Monad type class</h2>
393393
fail msg = error msg
394394
</pre>
395395

396-
<img src="assets/images/a-fistful-of-monads/kid.png" alt="this is you on monads" class="right" width="363" height="451">
396+
<img src="assets/images/a-fistful-of-monads/kid.png" class="right" width="363" height="451" alt="this is you on monads">
397397
<p>
398398
Let’s start with the first line. It says <span class="fixed">class Monad m where</span>.
399399
But wait, didn’t we say that monads are just beefed up applicative functors? Shouldn’t
@@ -429,7 +429,7 @@ <h2 id="the-monad-type-class">The Monad type class</h2>
429429
context.
430430
</div>
431431

432-
<img src="assets/images/a-fistful-of-monads/tur2.png" alt="hmmm yaes" class="left" width="169" height="145">
432+
<img src="assets/images/a-fistful-of-monads/tur2.png" class="left" width="169" height="145" alt="hmmm yaes">
433433

434434
<p>
435435
The next function is <span class="fixed">&gt;&gt;=</span>, or bind. It’s like
@@ -515,7 +515,7 @@ <h2 id="the-monad-type-class">The Monad type class</h2>
515515

516516
<h2 id="walk-the-line">Walk the line</h2>
517517

518-
<img src="assets/images/a-fistful-of-monads/pierre.png" alt="pierre" class="left" width="374" height="405">
518+
<img src="assets/images/a-fistful-of-monads/pierre.png" class="left" width="374" height="405" alt="pierre">
519519

520520
<p>
521521
Now that we know how to feed a <span class="fixed">Maybe a</span> value to a
@@ -809,7 +809,7 @@ <h2 id="walk-the-line">Walk the line</h2>
809809
Nothing
810810
</pre>
811811

812-
<img src="assets/images/a-fistful-of-monads/banana.png" alt="iama banana" class="right" width="262" height="130">
812+
<img src="assets/images/a-fistful-of-monads/banana.png" class="right" width="262" height="130" alt="iama banana">
813813

814814
<p>
815815
Awesome. The final result represents failure, which is what we expected. Let’s
@@ -940,7 +940,7 @@ <h2 id="walk-the-line">Walk the line</h2>
940940
Just pole3 -&gt; landLeft 1 pole3
941941
</pre>
942942

943-
<img src="assets/images/a-fistful-of-monads/centaur.png" alt="john joe glanton" class="right" width="297" height="331">
943+
<img src="assets/images/a-fistful-of-monads/centaur.png" class="right" width="297" height="331" alt="john joe glanton">
944944

945945
<p>
946946
We land a bird on the left and then we examine the possibility of failure and
@@ -1077,7 +1077,7 @@ <h2 id="do-notation">do notation</h2>
10771077
Just (show x ++ y)
10781078
</pre>
10791079

1080-
<img src="assets/images/a-fistful-of-monads/owld.png" alt="90s owl" class="right" width="269" height="348">
1080+
<img src="assets/images/a-fistful-of-monads/owld.png" class="right" width="269" height="348" alt="90s owl">
10811081

10821082
<p>
10831083
It would seem as though we’ve gained the ability to temporarily extract things
@@ -1329,7 +1329,7 @@ <h2 id="do-notation">do notation</h2>
13291329

13301330

13311331
<h2 id="the-list-monad">The list monad</h2>
1332-
<img src="assets/images/a-fistful-of-monads/deadcat.png" alt="dead cat" class="left" width="235" height="230">
1332+
<img src="assets/images/a-fistful-of-monads/deadcat.png" class="left" width="235" height="230" alt="dead cat">
13331333
<p>
13341334
So far, we’ve seen how <span class="fixed">Maybe</span> values can be viewed as
13351335
values with a failure context and how we can incorporate failure handling into
@@ -1465,7 +1465,7 @@ <h2 id="the-list-monad">The list monad</h2>
14651465
[(1,&#39;a&#39;),(1,&#39;b&#39;),(2,&#39;a&#39;),(2,&#39;b&#39;)]
14661466
</pre>
14671467

1468-
<img src="assets/images/a-fistful-of-monads/concatmap.png" alt="concatmap" class="left" width="399" height="340">
1468+
<img src="assets/images/a-fistful-of-monads/concatmap.png" class="left" width="399" height="340" alt="concatmap">
14691469

14701470
<p>
14711471
The list <span class="fixed">[1,2]</span> gets bound to
@@ -1692,7 +1692,7 @@ <h3 id="a-knights-quest">A knight’s quest</h3>
16921692
the row.
16931693
</p>
16941694

1695-
<img src="assets/images/a-fistful-of-monads/chess.png" alt="hee haw im a horse" class="center" width="760" height="447">
1695+
<img src="assets/images/a-fistful-of-monads/chess.png" class="center" width="760" height="447" alt="hee haw im a horse">
16961696

16971697
<p>
16981698
Let’s make a type synonym for the knight’s current position on the chess board:
@@ -1842,8 +1842,8 @@ <h3 id="a-knights-quest">A knight’s quest</h3>
18421842

18431843
<h2 id="monad-laws">Monad laws</h2>
18441844

1845-
<img src="assets/images/a-fistful-of-monads/judgedog.png" alt="the court finds you guilty of peeing all over
1846-
everything" class="right" width="343" height="170">
1845+
<img src="assets/images/a-fistful-of-monads/judgedog.png" class="right" width="343" height="170" alt="the court finds you guilty of peeing all over
1846+
everything">
18471847

18481848
<p>
18491849
Just like applicative functors, and functors before them, monads come with a few

docs/faq.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<div class="bgwrapper">
1818
<div id="content">
1919
<h1 id="faq">FAQ</h1>
20-
<img src="assets/images/faq/turtle.png" alt="turtle???" class="right" width="349" height="204">
20+
<img src="assets/images/faq/turtle.png" class="right" width="349" height="204" alt="turtle???">
2121
<h2 id="can-i-put-this-tutorial-on-my-site-or-change-it-or-whatever">Can I put this tutorial on my site or change it or whatever?</h2>
2222
<p>Sure, it’s licensed under a <a href="https://creativecommons.org/licenses/by-nc-sa/3.0/" rel="nofollow">creative commons</a> license, so you can share and change this, as long as you do it with a smile on your face and for non-commercial purposes.</p>
2323
<h2 id="do-you-recommend-any-other-haskell-reading-material">Do you recommend any other Haskell reading material?</h2>

docs/for-a-few-monads-more.html

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
</div>
3434
<h1 id="for-a-few-monads-more">For a Few Monads More</h1>
3535

36-
<img src="assets/images/for-a-few-monads-more/clint.png" alt="there are two kinds of people in the world, my friend. those who learn them a haskell and those who have the job of coding java" class="right" width="189" height="400">
36+
<img src="assets/images/for-a-few-monads-more/clint.png" class="right" width="189" height="400" alt="there are two kinds of people in the world, my friend. those who learn them a haskell and those who have the job of coding java">
3737

3838
<p>
3939
We’ve seen how monads can be used to take values with contexts and apply them to
@@ -124,7 +124,7 @@ <h2 id="writer">Writer? I hardly know her!</h2>
124124
(True,&quot;Compared gang size to 9.&quot;)
125125
</pre>
126126

127-
<img src="assets/images/for-a-few-monads-more/tuco.png" alt="when you have to poop, poop, don’t talk" class="left" width="196" height="280">
127+
<img src="assets/images/for-a-few-monads-more/tuco.png" class="left" width="196" height="280" alt="when you have to poop, poop, don’t talk">
128128

129129
<p>
130130
So far so good. <span class="fixed">isBigGang</span> takes a normal value and
@@ -394,7 +394,7 @@ <h3 id="the-writer-type">The Writer type</h3>
394394
</pre>
395395

396396

397-
<img src="assets/images/for-a-few-monads-more/angeleyes.png" alt="when you have to poop, poop, don’t talk" class="right" width="383" height="248">
397+
<img src="assets/images/for-a-few-monads-more/angeleyes.png" class="right" width="383" height="248" alt="when you have to poop, poop, don’t talk">
398398
<p>
399399
First off, let’s examine <span class="fixed">&gt;&gt;=</span>. Its
400400
implementation is essentially the same as <span class="fixed">applyLog</span>,
@@ -756,7 +756,7 @@ <h3 id="inefficient-list-construction">Inefficient list construction</h3>
756756

757757
<h3 id="difference-lists">Difference lists</h3>
758758

759-
<img src="assets/images/for-a-few-monads-more/cactus.png" alt="cactuses" class="left" width="147" height="300">
759+
<img src="assets/images/for-a-few-monads-more/cactus.png" class="left" width="147" height="300" alt="cactuses">
760760

761761
<p>
762762
Because lists can sometimes be inefficient when repeatedly appended in this
@@ -976,7 +976,7 @@ <h3 id="comparing-performance">Comparing Performance</h3>
976976

977977
<h2 id="reader">Reader? Ugh, not this joke again.</h2>
978978

979-
<img src="assets/images/for-a-few-monads-more/revolver.png" alt="bang youre dead" class="left" width="280" height="106">
979+
<img src="assets/images/for-a-few-monads-more/revolver.png" class="left" width="280" height="106" alt="bang youre dead">
980980

981981
<p>
982982
In the <a href="functors-applicative-functors-and-monoids.html">chapter about
@@ -1136,7 +1136,7 @@ <h2 id="reader">Reader? Ugh, not this joke again.</h2>
11361136

11371137

11381138
<h2 id="state">Tasteful stateful computations</h2>
1139-
<img src="assets/images/for-a-few-monads-more/texas.png" alt="don’t jest with texas" class="left" width="244" height="230">
1139+
<img src="assets/images/for-a-few-monads-more/texas.png" class="left" width="244" height="230" alt="don’t jest with texas">
11401140

11411141
<p>
11421142
Haskell is a pure language and because of that, our programs are made of
@@ -1366,7 +1366,7 @@ <h3 id="the-state-monad">The State monad</h3>
13661366
a certain value as the result and keeps the state unchanged.
13671367
</p>
13681368

1369-
<img src="assets/images/for-a-few-monads-more/badge.png" alt="im a cop" class="right" width="182" height="160">
1369+
<img src="assets/images/for-a-few-monads-more/badge.png" class="right" width="182" height="160" alt="im a cop">
13701370

13711371
<p>
13721372
What about <span class="fixed">&gt;&gt;=</span>? Well, the result of feeding a
@@ -1821,7 +1821,7 @@ <h2 id="useful-monadic-functions">Some useful monadic functions</h2>
18211821

18221822
<h3 id="liftm-and-friends">liftM and friends</h3>
18231823

1824-
<img src="assets/images/for-a-few-monads-more/wolf.png" alt="im a cop too" class="right" width="394" height="222">
1824+
<img src="assets/images/for-a-few-monads-more/wolf.png" class="right" width="394" height="222" alt="im a cop too">
18251825

18261826
<p>
18271827
When we started our journey to the top of Monad Mountain, we first looked
@@ -2184,7 +2184,7 @@ <h3 id="the-join-function">The join function</h3>
21842184
m
21852185
</pre>
21862186

2187-
<img src="assets/images/for-a-few-monads-more/tipi.png" alt="im a cop too as well also" class="right" width="253" height="379">
2187+
<img src="assets/images/for-a-few-monads-more/tipi.png" class="right" width="253" height="379" alt="im a cop too as well also">
21882188

21892189
<p>
21902190
Perhaps the most interesting thing about <span class="fixed">join</span> is
@@ -2468,7 +2468,7 @@ <h3 id="foldm">foldM</h3>
24682468

24692469
<h3 id="making-a-safe-rpn-calculator">Making a safe RPN calculator</h3>
24702470

2471-
<img src="assets/images/for-a-few-monads-more/miner.png" alt="i’ve found yellow!" class="left" width="280" height="396">
2471+
<img src="assets/images/for-a-few-monads-more/miner.png" class="left" width="280" height="396" alt="i’ve found yellow!">
24722472

24732473
<p>
24742474
When we were solving the problem of <a href="http://learnyouahaskell.com/reverse-polish-notation-calculator">implementing a RPN calculator</a>,
@@ -2771,7 +2771,7 @@ <h3 id="composing-monadic-functions">Composing monadic functions</h3>
27712771

27722772

27732773
<h2 id="making-monads">Making monads</h2>
2774-
<img src="assets/images/for-a-few-monads-more/spearhead.png" alt="kewl" class="center" width="780" height="244">
2774+
<img src="assets/images/for-a-few-monads-more/spearhead.png" class="center" width="780" height="244" alt="kewl">
27752775

27762776
<p>
27772777
In this section, we’re going to look at an example of how a type gets made,
@@ -2926,7 +2926,7 @@ <h2 id="making-monads">Making monads</h2>
29262926
models this scenario:
29272927
</p>
29282928

2929-
<img src="assets/images/for-a-few-monads-more/prob.png" alt="probs" class="left" width="456" height="142">
2929+
<img src="assets/images/for-a-few-monads-more/prob.png" class="left" width="456" height="142" alt="probs">
29302930

29312931
<p>
29322932
What are the chances for each of these letters to occur? If we were to draw this
@@ -2989,7 +2989,7 @@ <h2 id="making-monads">Making monads</h2>
29892989
fail _ = Prob []
29902990
</pre>
29912991

2992-
<img src="assets/images/for-a-few-monads-more/ride.png" alt="ride em cowboy" class="right" width="177" height="406">
2992+
<img src="assets/images/for-a-few-monads-more/ride.png" class="right" width="177" height="406" alt="ride em cowboy">
29932993

29942994
<p>
29952995
Because we already did all the hard work, the instance is very simple. We also

0 commit comments

Comments
 (0)