Skip to content

Commit 28b607b

Browse files
Grammar typos spelling flow (#70)
* "occurences" -> "occurrences" * "glueing" -> "gluing" * "lenghts" -> "lengths" * "hypothenuse" -> "hypotenuse" * "auxilliary" -> "auxiliary" * "Pure code can throw exceptions, but it they can..." -> "Pure code can throw exceptions, but they can..." * "less bugs" -> "fewer bugs" (countable nouns use "fewer" not "less") * "less elements" -> "fewer elements" (countable nouns use "fewer" not "less") * Missing comma here * "is comprised of" -> "is composed of" * "comprised of" -> "composed of" * "If a function is comprised only of special characters" -> "If a function name comprises only special characters" * "making them comprised of only" -> "making them composed of only" * "a RPN" -> "an RPN" * "on to" -> "onto" * "tightwalker" -> "tightrope walker" * "whatever's" -> "whatever is" * "youre" -> "you're" * "So let'use throw" -> "So let's throw" * "Protip:" -> "Pro. tip" * "The intial stack" -> "The initial stack" * "whaale" -> "whale" (in alt text) * "oisters" -> "oysters" * "mornin" -> "morning" * "adjecent" -> "adjacent" * "listOfFuns" -> "listOfFuncs" * "schtick" -> "shtick" * "Protip" -> "Pro. tip" * "sequitor" -> "sequitur" * "heapload" -> "heap load" * "sublist" -> "sub list" * "permision" -> "permission" * "ekcetera" -> "Et cetera" (though Etc., etc... is probably better) * "ghc's" -> "GHC's" * "satifies" -> "satisfies" * "uninverting" -> "un-inverting" * "anymore" -> "any more" * "of any of the previous ones" -> "of any previous ones" * "voila" -> "voilà" * "If it it's not" -> "If it's not" * "manually check the if the laws hold" -> "manually check if the laws hold" * "object oriented" -> "object-oriented" * "Tip top!" -> "Tip-top!" * "It's a sort of a beefed up" -> "It's a sort of beefed up" * "provides a the" -> "provides a" * "left node is has" -> "left node has" * "sort of an interface" -> "sort of interface" * "run of the mill" -> "run-of-the-mill" * "also know as unit" -> "also known as "unit"" * "that have a lowest possible" -> "that have the lowest possible" * "If you're going to try and implement this, you'll probably going to " -> "If you're going to try and implement this, you'll probably need to " * "anymore" -> "any more" --------- Co-authored-by: Stanislav (Stanley) Modrak <44023416+smith558@users.noreply.github.com>
1 parent c170c35 commit 28b607b

15 files changed

+62
-62
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ Discuss the ideas with the community.
3535
* Haskell Discourse - https://discourse.haskell.org/t/learn-you-a-haskell-a-community-version/4056
3636

3737
## Licence
38-
This domain and repository is in no way affiliated with Miran Lipovača (the original author) and is being extended and modified with his permision as per the licence the original work was released under ([Creative Commons Attribution-Noncommercial-ShareAlike 3.0 Unported License](http://creativecommons.org/licenses/by-nc-sa/3.0/)) as well as his literal statement encouraging modifications to be made ([FAQ](http://learnyouahaskell.com/faq)).
38+
This domain and repository is in no way affiliated with Miran Lipovača (the original author) and is being extended and modified with his permission as per the licence the original work was released under ([Creative Commons Attribution-Noncommercial-ShareAlike 3.0 Unported License](http://creativecommons.org/licenses/by-nc-sa/3.0/)) as well as his literal statement encouraging modifications to be made ([FAQ](http://learnyouahaskell.com/faq)).
3939

4040
##
4141
This work is licensed under a [Creative Commons Attribution-Noncommercial-ShareAlike 3.0 Unported License](http://creativecommons.org/licenses/by-nc-sa/3.0/).

docs/a-fistful-of-monads.html

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -724,7 +724,7 @@ <h2>Walk the line</h2>
724724
wrapped in a <span class="fixed">Just</span>. But when many more birds end up on
725725
one side of the pole, we get a <span class="fixed">Nothing</span>. This is cool,
726726
but we seem to have lost the ability to repeatedly land birds on the pole. We
727-
can't do <span class="fixed">landLeft 1 (landRight 1 (0,0))</span> anymore
727+
can't do <span class="fixed">landLeft 1 (landRight 1 (0,0))</span> any more
728728
because when we apply <span class="fixed">landRight 1</span> to <span
729729
class="fixed">(0,0)</span>, we don't get a <span class="fixed">Pole</span>, but
730730
a <span class="fixed">Maybe Pole</span>. <span class="fixed">landLeft 1</span>
@@ -861,7 +861,7 @@ <h2>Walk the line</h2>
861861

862862
<p>
863863
Now we can chain it together with our bird landings. It will always cause our walker
864-
to fall, because it ignores whatever's passed to it and always returns a
864+
to fall, because it ignores whatever is passed to it and always returns a
865865
failure. Check it:
866866
</p>
867867

@@ -1106,7 +1106,7 @@ <h2>do notation</h2>
11061106
expression
11071107
back to a chain of <span class="fixed">&gt;&gt;=</span> applications. Rather,
11081108
its result is the result of the whole glued up monadic value, taking into
1109-
account the possible failure of any of the previous ones.
1109+
account the possible failure of any previous ones.
11101110
</p>
11111111

11121112
<p>
@@ -1139,10 +1139,10 @@ <h2>do notation</h2>
11391139
</p>
11401140

11411141
<p>
1142-
Our tightwalker's routine can also be expressed with <span class="fixed">do</span>
1142+
Our tightrope walker's routine can also be expressed with <span class="fixed">do</span>
11431143
notation. <span class="fixed">landLeft</span> and <span class="fixed">landRight</span>
11441144
take a number of birds and a pole and produce a pole wrapped in a <span
1145-
class="fixed">Just</span>, unless the tightwalker
1145+
class="fixed">Just</span>, unless the tightrope walker
11461146
slips, in which case a <span class="fixed">Nothing</span> is produced. We used
11471147
<span class="fixed">&gt;&gt;=</span> to chain successive steps because each one
11481148
relied on the previous one and each one had an added context of possible
@@ -1426,7 +1426,7 @@ <h2>The list monad</h2>
14261426

14271427
<p>
14281428
The lambda is applied to every element and we get a list of lists. Finally, we
1429-
just flatten the list and voila! We've applied a non-deterministic function to a
1429+
just flatten the list and voilà! We've applied a non-deterministic function to a
14301430
non-deterministic value!
14311431
</p>
14321432

@@ -1726,7 +1726,7 @@ <h3>A knight's quest</h3>
17261726
horizontally or vertically but its movement has to be both horizontal and
17271727
vertical. <span class="fixed">(c',r')</span> takes on every value from the list
17281728
of movements and then <span class="fixed">guard</span> makes sure that the new
1729-
move, <span class="fixed">(c',r')</span> is still on the board. If it it's not,
1729+
move, <span class="fixed">(c',r')</span> is still on the board. If it's not,
17301730
it produces an empty list, which causes a failure and <span
17311731
class="fixed">return (c',r')</span> isn't carried out for that position.
17321732
</p>
@@ -1861,7 +1861,7 @@ <h2>Monad laws</h2>
18611861
reasonably sure that all is well with the monad laws for that type. We can rely
18621862
on the types that come with the standard library to satisfy the laws, but later
18631863
when we go about making our own monads, we're going to have to manually check
1864-
the if the laws hold. But don't worry, they're not complicated.
1864+
if the laws hold. But don't worry, they're not complicated.
18651865
</p>
18661866

18671867
<h3>Left identity</h3>

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -853,7 +853,7 @@ <h3>Difference lists</h3>
853853
</pre>
854854

855855
<p>
856-
Tip top! Now we can increase the efficiency of our <span
856+
Tip-top! Now we can increase the efficiency of our <span
857857
class="fixed">gcdReverse</span> function by making it use difference lists instead of normal
858858
lists:
859859
</p>
@@ -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="assets/images/for-a-few-monads-more/revolver.png" alt="bang youre dead" class="left" width="280"
978+
<img src="assets/images/for-a-few-monads-more/revolver.png" alt="bang you're dead" class="left" width="280"
979979
height="106">
980980

981981
<p>
@@ -2154,7 +2154,7 @@ <h3>The join function</h3>
21542154
flattened with <span class="fixed">join</span> and then run, it first puts
21552155
<span class="fixed">2</span> and <span class="fixed">1</span> onto the stack and
21562156
then <span class="fixed">push 10</span> gets carried out, pushing a <span
2157-
class="fixed">10</span> on to the top.
2157+
class="fixed">10</span> onto the top.
21582158
</p>
21592159

21602160
<p>
@@ -2474,7 +2474,7 @@ <h3>Making a safe RPN calculator</h3>
24742474
height="396">
24752475

24762476
<p>
2477-
When we were solving the problem of <a href="http://learnyouahaskell.com/reverse-polish-notation-calculator">implementing a RPN calculator</a>,
2477+
When we were solving the problem of <a href="http://learnyouahaskell.com/reverse-polish-notation-calculator">implementing an RPN calculator</a>,
24782478
we noted that it worked fine as long as the input that it got made sense.
24792479
But if something went wrong, it caused our whole program to crash. Now that we
24802480
know how to take some code that we have and make it monadic, let's take our RPN
@@ -2840,7 +2840,7 @@ <h2>Making monads</h2>
28402840
<p>
28412841
The first line is just one quarter. In the second line we add two halves to get
28422842
a whole and in the third line we add one third with five quarters and get
2843-
nineteen twelfths. So let'use throw out our floating points and use
2843+
nineteen twelfths. So let's throw out our floating points and use
28442844
<span class="fixed">Rational</span> for our probabilities:
28452845
</p>
28462846

0 commit comments

Comments
 (0)