Skip to content

Commit b018f6d

Browse files
authored
Use https (#15)
1 parent d2e20cc commit b018f6d

20 files changed

+153
-153
lines changed

docs/a-fistful-of-monads.html

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
2-
"http://www.w3.org/TR/html4/strict.dtd">
2+
"https://www.w3.org/TR/html4/strict.dtd">
33
<html>
44
<head>
55
<title>A Fistful of Monads - Learn You a Haskell for Great Good!</title>
@@ -47,7 +47,7 @@ <h1>A Fistful of Monads</h1>
4747
applicative functors are only beefed up functors.
4848
</p>
4949

50-
<img src="http://s3.amazonaws.com/lyah/smugpig.png" alt="more cool than u" class="right" width="307" height="186">
50+
<img src="https://s3.amazonaws.com/lyah/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="http://s3.amazonaws.com/lyah/buddha.png" alt="monads, grasshoppa" class="left" width="302" height="387">
171+
<img src="https://s3.amazonaws.com/lyah/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="http://s3.amazonaws.com/lyah/kid.png" alt="this is you on monads" class="right" width="363" height="451">
396+
<img src="https://s3.amazonaws.com/lyah/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="http://s3.amazonaws.com/lyah/tur2.png" alt="hmmm yaes" class="left" width="169" height="145">
432+
<img src="https://s3.amazonaws.com/lyah/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="http://s3.amazonaws.com/lyah/pierre.png" alt="pierre" class="left" width="374" height="405">
518+
<img src="https://s3.amazonaws.com/lyah/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="http://s3.amazonaws.com/lyah/banana.png" alt="iama banana" class="right" width="262" height="130">
812+
<img src="https://s3.amazonaws.com/lyah/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="http://s3.amazonaws.com/lyah/centaur.png" alt="john joe glanton" class="right" width="297" height="331">
943+
<img src="https://s3.amazonaws.com/lyah/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="http://s3.amazonaws.com/lyah/owld.png" alt="90s owl" class="right" width="269" height="348">
1080+
<img src="https://s3.amazonaws.com/lyah/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="http://s3.amazonaws.com/lyah/deadcat.png" alt="dead cat" class="left" width="235" height="230">
1332+
<img src="https://s3.amazonaws.com/lyah/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="http://s3.amazonaws.com/lyah/concatmap.png" alt="concatmap" class="left" width="399" height="340">
1468+
<img src="https://s3.amazonaws.com/lyah/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="http://s3.amazonaws.com/lyah/chess.png" alt="hee haw im a horse" class="center" width="760" height="447">
1695+
<img src="https://s3.amazonaws.com/lyah/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="http://s3.amazonaws.com/lyah/judgedog.png" alt="the court finds you guilty of peeing all over
1845+
<img src="https://s3.amazonaws.com/lyah/judgedog.png" alt="the court finds you guilty of peeing all over
18461846
everything" class="right" width="343" height="170">
18471847

18481848
<p>

docs/assets/css/style.css

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ pre.code {
7575
padding:10px;
7676
background-color:#ffc;
7777
margin-bottom:25px;
78-
background-image:url(http://s3.amazonaws.com/lyah/note.jpg);
78+
background-image:url(https://s3.amazonaws.com/lyah/note.jpg);
7979
}
8080
.label {
8181
white-space:nowrap;
@@ -112,7 +112,7 @@ pre.code {
112112
margin:0px auto;
113113
}
114114
.introcontent {
115-
background-image:url(http://s3.amazonaws.com/lyah/bg.png);
115+
background-image:url(https://s3.amazonaws.com/lyah/bg.png);
116116
}
117117
.bgwrapper {
118118
margin-top:50px;
@@ -181,13 +181,13 @@ pre.code {
181181
}
182182
.prevlink {
183183
padding-left:20px;
184-
background-image:url(http://s3.amazonaws.com/lyah/prv.png);
184+
background-image:url(https://s3.amazonaws.com/lyah/prv.png);
185185
background-position:0px 3px;
186186
background-repeat:no-repeat;
187187
}
188188
.nxtlink {
189189
padding-right:20px;
190-
background-image:url(http://s3.amazonaws.com/lyah/nxt.png);
190+
background-image:url(https://s3.amazonaws.com/lyah/nxt.png);
191191
background-position:top right;
192192
background-repeat:no-repeat;
193193
}

docs/chapters.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
2-
"http://www.w3.org/TR/html4/strict.dtd">
2+
"https://www.w3.org/TR/html4/strict.dtd">
33
<html>
44
<head>
55
<title>Chapters - Learn You a Haskell for Great Good!</title>
@@ -165,7 +165,7 @@ <h1>Learn You a Haskell for Great Good!</h1>
165165
</li>
166166
</ol>
167167
<p>
168-
This work is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/3.0/" rel="nofollow">Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License</a> because I couldn't find a license with an even longer name.
168+
This work is licensed under a <a rel="license" href="https://creativecommons.org/licenses/by-nc-sa/3.0/" rel="nofollow">Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License</a> because I couldn't find a license with an even longer name.
169169
</p>
170170
</div>
171171
<script type="text/javascript" src="sh/Scripts/shCore.js"></script>

docs/faq.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
2-
"http://www.w3.org/TR/html4/strict.dtd">
2+
"https://www.w3.org/TR/html4/strict.dtd">
33
<html>
44
<head>
55
<title>FAQ - Learn You a Haskell for Great Good!</title>
@@ -17,9 +17,9 @@
1717
<div class="bgwrapper">
1818
<div id="content">
1919
<h1>FAQ</h1>
20-
<img src="http://s3.amazonaws.com/lyah/turtle.png" alt="turtle???" class="right" width="349" height="204">
20+
<img src="https://s3.amazonaws.com/lyah/turtle.png" alt="turtle???" class="right" width="349" height="204">
2121
<h2>Can I put this tutorial on my site or change it or whatever?</h2>
22-
<p>Sure, it's licensed under a <a href="http://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>
22+
<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>Do you recommend any other Haskell reading material?</h2>
2424
<p>There are loads of awesome tutorials out there, but I'd just like to point out how great <a href="http://book.realworldhaskell.org/read/" rel="nofollow">Real World Haskell</a> is. It's really great. I feel it complements this tutorial nicely. This tutorial focuses mainly on using simple examples to ease beginners into learning Haskell, whereas Real World Haskell really shows you how to do useful stuff with it.</p>
2525
<p>Another great Haskell resource is <a href="https://tryhaskell.org" rel="nofollow">Try Haskell</a>, which allows you to try Haskell right in your browser and offers a rad interactive walkthrough.</p>
@@ -28,7 +28,7 @@ <h2>How do I get in touch with you?</h2>
2828
<h2>Your book is cool but I want some exercises too!</h2>
2929
<p>Coming soon! A lot of people have been asking me to add exercises, so I'll be putting some up soonish.</p>
3030
<h2>Tell me about yourself!</h2>
31-
<p>My name is Miran Lipovača, I reside in Ljubljana, Slovenia. Most of my time is spent on doing nothing in particular, but when I'm not doing nothing I'm either programming, drawing, boxing or playing bass. I even have a cool <a href="http://www.bigbasstabs.com">bass tabs</a> site. I also have a collection of stuffed owls and sometimes I talk to them and they talk back.</p>
31+
<p>My name is Miran Lipovača, I reside in Ljubljana, Slovenia. Most of my time is spent on doing nothing in particular, but when I'm not doing nothing I'm either programming, drawing, boxing or playing bass. I even have a cool <a href="https://www.bigbasstabs.com">bass tabs</a> site. I also have a collection of stuffed owls and sometimes I talk to them and they talk back.</p>
3232
<div class="footdiv">
3333
<ul>
3434
<li style="text-align:center">

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

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
2-
"http://www.w3.org/TR/html4/strict.dtd">
2+
"https://www.w3.org/TR/html4/strict.dtd">
33
<html>
44
<head>
55
<title>For a Few Monads More - Learn You a Haskell for Great Good!</title>
@@ -33,7 +33,7 @@
3333
</div>
3434
<h1>For a Few Monads More</h1>
3535

36-
<img src="http://s3.amazonaws.com/lyah/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="https://s3.amazonaws.com/lyah/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">
3737

3838
<p>
3939
We've seen how monads can be used to take values with contexts and apply them to
@@ -123,7 +123,7 @@ <h2>Writer? I hardly know her!</h2>
123123
(True,"Compared gang size to 9.")
124124
</pre>
125125

126-
<img src="http://s3.amazonaws.com/lyah/tuco.png" alt="when you have to poop, poop, don't talk" class="left"
126+
<img src="https://s3.amazonaws.com/lyah/tuco.png" alt="when you have to poop, poop, don't talk" class="left"
127127
width="196" height="280">
128128

129129
<p>
@@ -394,7 +394,7 @@ <h3>The Writer type</h3>
394394
</pre>
395395

396396

397-
<img src="http://s3.amazonaws.com/lyah/angeleyes.png" alt="when you have to poop, poop, don't talk" class="right" width="383" height="248">
397+
<img src="https://s3.amazonaws.com/lyah/angeleyes.png" alt="when you have to poop, poop, don't talk" class="right" width="383" height="248">
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>Inefficient list construction</h3>
756756

757757
<h3>Difference lists</h3>
758758

759-
<img src="http://s3.amazonaws.com/lyah/cactus.png" alt="cactuses" class="left" width="147" height="300">
759+
<img src="https://s3.amazonaws.com/lyah/cactus.png" alt="cactuses" class="left" width="147" height="300">
760760

761761
<p>
762762
Because lists can sometimes be inefficient when repeatedly appended in this
@@ -975,7 +975,7 @@ <h3>Comparing Performance</h3>
975975
<a name="reader"></a>
976976
<h2>Reader? Ugh, not this joke again.</h2>
977977

978-
<img src="http://s3.amazonaws.com/lyah/revolver.png" alt="bang youre dead" class="left" width="280"
978+
<img src="https://s3.amazonaws.com/lyah/revolver.png" alt="bang youre dead" class="left" width="280"
979979
height="106">
980980

981981
<p>
@@ -1136,7 +1136,7 @@ <h2>Reader? Ugh, not this joke again.</h2>
11361136

11371137
<a name="state"></a>
11381138
<h2>Tasteful stateful computations</h2>
1139-
<img src="http://s3.amazonaws.com/lyah/texas.png" alt="don't jest with texas" class="left" width="244"
1139+
<img src="https://s3.amazonaws.com/lyah/texas.png" alt="don't jest with texas" class="left" width="244"
11401140
height="230">
11411141

11421142
<p>
@@ -1367,7 +1367,7 @@ <h3>The State monad</h3>
13671367
a certain value as the result and keeps the state unchanged.
13681368
</p>
13691369

1370-
<img src="http://s3.amazonaws.com/lyah/badge.png" alt="im a cop" class="right" width="182" height="160">
1370+
<img src="https://s3.amazonaws.com/lyah/badge.png" alt="im a cop" class="right" width="182" height="160">
13711371

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

18231823
<h3>liftM and friends</h3>
18241824

1825-
<img src="http://s3.amazonaws.com/lyah/wolf.png" alt="im a cop too" class="right" width="394" height="222">
1825+
<img src="https://s3.amazonaws.com/lyah/wolf.png" alt="im a cop too" class="right" width="394" height="222">
18261826

18271827
<p>
18281828
When we started our journey to the top of Monad Mountain, we first looked
@@ -2185,7 +2185,7 @@ <h3>The join function</h3>
21852185
m
21862186
</pre>
21872187

2188-
<img src="http://s3.amazonaws.com/lyah/tipi.png" alt="im a cop too as well also" class="right" width="253"
2188+
<img src="https://s3.amazonaws.com/lyah/tipi.png" alt="im a cop too as well also" class="right" width="253"
21892189
height="379">
21902190

21912191
<p>
@@ -2470,7 +2470,7 @@ <h3>foldM</h3>
24702470

24712471
<h3>Making a safe RPN calculator</h3>
24722472

2473-
<img src="http://s3.amazonaws.com/lyah/miner.png" alt="i've found yellow!" class="left" width="280"
2473+
<img src="https://s3.amazonaws.com/lyah/miner.png" alt="i've found yellow!" class="left" width="280"
24742474
height="396">
24752475

24762476
<p>
@@ -2774,7 +2774,7 @@ <h3>Composing monadic functions</h3>
27742774

27752775
<a name="making-monads"></a>
27762776
<h2>Making monads</h2>
2777-
<img src="http://s3.amazonaws.com/lyah/spearhead.png" alt="kewl" class="center" width="780" height="244">
2777+
<img src="https://s3.amazonaws.com/lyah/spearhead.png" alt="kewl" class="center" width="780" height="244">
27782778

27792779
<p>
27802780
In this section, we're going to look at an example of how a type gets made,
@@ -2929,7 +2929,7 @@ <h2>Making monads</h2>
29292929
models this scenario:
29302930
</p>
29312931

2932-
<img src="http://s3.amazonaws.com/lyah/prob.png" alt="probs" class="left" width="456" height="142">
2932+
<img src="https://s3.amazonaws.com/lyah/prob.png" alt="probs" class="left" width="456" height="142">
29332933

29342934
<p>
29352935
What are the chances for each of these letters to occur? If we were to draw this
@@ -2992,7 +2992,7 @@ <h2>Making monads</h2>
29922992
fail _ = Prob []
29932993
</pre>
29942994

2995-
<img src="http://s3.amazonaws.com/lyah/ride.png" alt="ride em cowboy" class="right" width="177" height="406">
2995+
<img src="https://s3.amazonaws.com/lyah/ride.png" alt="ride em cowboy" class="right" width="177" height="406">
29962996

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

0 commit comments

Comments
 (0)