Skip to content

Commit d2ca81d

Browse files
xogcoxGregory Cox
andauthored
Put all remote images in assets directory and update URLs (learnyouahaskell#33)
Co-authored-by: Gregory Cox <gcox_gcox@proton.me>
1 parent beaa605 commit d2ca81d

File tree

148 files changed

+1344
-145
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

148 files changed

+1344
-145
lines changed

docs/a-fistful-of-monads.html

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
@import url('reset.css');
1010
@import url('style.css');
1111
</style>
12-
<link rel="shortcut icon" href="favicon.png" type="image/png">
12+
<link rel="shortcut icon" href="assets/images/favicon.png" type="image/png">
1313
<link rel="prev" href="functors-applicative-functors-and-monoids.html">
1414
<link rel="next" href="for-a-few-monads-more.html">
1515
<link type="text/css" rel="stylesheet" href="sh/Styles/SyntaxHighlighter.css">
@@ -47,7 +47,7 @@ <h1>A Fistful of Monads</h1>
4747
applicative functors are only beefed up functors.
4848
</p>
4949

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

5252
<p>
5353
When we started off with functors, we saw that it's possible to map functions
@@ -168,7 +168,7 @@ <h1>A Fistful of Monads</h1>
168168
<a name="getting-our-feet-wet-with-maybe"></a>
169169
<h2>Getting our feet wet with Maybe</h2>
170170

171-
<img src="https://s3.amazonaws.com/lyah/buddha.png" alt="monads, grasshoppa" class="left" width="302" height="387">
171+
<img src="assets/images/a-fistful-of-monads/buddha.png" alt="monads, grasshoppa" class="left" width="302" height="387">
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>The Monad type class</h2>
393393
fail msg = error msg
394394
</pre>
395395

396-
<img src="https://s3.amazonaws.com/lyah/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" alt="this is you on monads" class="right" width="363" height="451">
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>The Monad type class</h2>
429429
context.
430430
</div>
431431

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

434434
<p>
435435
The next function is <span class="fixed">&gt;&gt;=</span>, or bind. It's like
@@ -515,7 +515,7 @@ <h2>The Monad type class</h2>
515515
<a name="walk-the-line"></a>
516516
<h2>Walk the line</h2>
517517

518-
<img src="https://s3.amazonaws.com/lyah/pierre.png" alt="pierre" class="left" width="374" height="405">
518+
<img src="assets/images/a-fistful-of-monads/pierre.png" alt="pierre" class="left" width="374" height="405">
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>Walk the line</h2>
809809
Nothing
810810
</pre>
811811

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

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

943-
<img src="https://s3.amazonaws.com/lyah/centaur.png" alt="john joe glanton" class="right" width="297" height="331">
943+
<img src="assets/images/a-fistful-of-monads/centaur.png" alt="john joe glanton" class="right" width="297" height="331">
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>do notation</h2>
10771077
Just (show x ++ y)
10781078
</pre>
10791079

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

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

13301330
<a name="the-list-monad"></a>
13311331
<h2>The list monad</h2>
1332-
<img src="https://s3.amazonaws.com/lyah/deadcat.png" alt="dead cat" class="left" width="235" height="230">
1332+
<img src="assets/images/a-fistful-of-monads/deadcat.png" alt="dead cat" class="left" width="235" height="230">
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>The list monad</h2>
14651465
[(1,'a'),(1,'b'),(2,'a'),(2,'b')]
14661466
</pre>
14671467

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

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

1695-
<img src="https://s3.amazonaws.com/lyah/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" alt="hee haw im a horse" class="center" width="760" height="447">
16961696

16971697
<p>
16981698
Let's make a type synonym for the knight's current position on the chess board:
@@ -1842,7 +1842,7 @@ <h3>A knight's quest</h3>
18421842
<a name="monad-laws"></a>
18431843
<h2>Monad laws</h2>
18441844

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

18481848
<p>
4 KB
31.9 KB
9.7 KB
28.5 KB
13.2 KB
6.89 KB
6.29 KB
17.5 KB
11.6 KB

0 commit comments

Comments
 (0)