Skip to content

Commit 3715b32

Browse files
committed
Lots of tweaks.
1 parent 45b72af commit 3715b32

12 files changed

+17
-17
lines changed

src/content/1.10/Natural Transformations.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
\begin{wrapfigure}[13]{R}{0pt}
55
\raisebox{0pt}[\dimexpr\height-0.75\baselineskip\relax]{
6-
\fbox{\includegraphics[width=60mm]{images/1_functors.jpg}}}%
6+
\includegraphics[width=60mm]{images/1_functors.jpg}}%
77
\end{wrapfigure}
88

99
\noindent
@@ -114,7 +114,7 @@
114114

115115
\begin{figure}[H]
116116
\centering
117-
\fbox{\includegraphics[width=60mm]{images/naturality.jpg}}
117+
\includegraphics[width=60mm]{images/naturality.jpg}
118118
\end{figure}
119119

120120
\noindent

src/content/1.2/Types and Functions.tex

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -501,8 +501,7 @@ \section{Challenges}
501501
\end{Verbatim}
502502
\item
503503
\begin{Verbatim}
504-
int f(int x)
505-
{
504+
int f(int x) {
506505
static int y = 0;
507506
y += x;
508507
return y;

src/content/1.3/Categories Great and Small.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -257,8 +257,8 @@ \section{Monoid as Category}
257257
tells us that \code{mappend} maps an element of a monoid set to a
258258
function acting on that set.
259259

260-
\begin{wrapfigure}[11]{R}{0pt}
261-
\raisebox{0pt}[\dimexpr\height-0.75\baselineskip\relax]{
260+
\begin{wrapfigure}[12]{R}{0pt}
261+
\raisebox{0pt}[\dimexpr\height-0.85\baselineskip\relax]{
262262
\includegraphics[width=40mm]{images/monoid.jpg}}
263263
\end{wrapfigure}
264264

src/content/1.6/Simple Algebraic Data Types.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ \section{Product Types}
2121

2222
\begin{figure}
2323
\centering
24-
\fbox{\includegraphics[width=1.56250in]{images/pair.jpg}}
24+
\includegraphics[width=1.56250in]{images/pair.jpg}
2525
\end{figure}
2626

2727
\noindent

src/content/1.8/Functoriality.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ \section{Bifunctors}
7171

7272
\begin{figure}[H]
7373
\centering
74-
\fbox{\includegraphics[width=40mm]{images/bimap.jpg}}
74+
\includegraphics[width=40mm]{images/bimap.jpg}
7575
\caption{bimap}
7676
\end{figure}
7777

src/content/2.2/Limits and Colimits.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ \section{Limit as a Natural Isomorphism}
237237

238238
\begin{figure}[H]
239239
\centering
240-
\fbox{\includegraphics[width=2.59375in]{images/homsetmapping.jpg}}
240+
\includegraphics[width=2.59375in]{images/homsetmapping.jpg}
241241
\end{figure}
242242

243243
\noindent

src/content/3.1/It's All About Morphisms.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ \section{Commuting Diagrams}
3232

3333
\begin{wrapfigure}[9]{R}{0pt}
3434
\raisebox{0pt}[\dimexpr\height-0.75\baselineskip\relax]{
35-
\fbox{\includegraphics[width=1.78125in]{images/productranking.jpg}}}%
35+
\includegraphics[width=1.78125in]{images/productranking.jpg}}%
3636
\end{wrapfigure}
3737

3838
The product is a simple example of a universal construction. We pick two
@@ -73,7 +73,7 @@ \section{Natural Transformations}
7373
transformation maps one such sheet corresponding to F, to another,
7474
corresponding to G.
7575

76-
\begin{wrapfigure}[10]{R}{0pt}
76+
\begin{wrapfigure}[13]{R}{0pt}
7777
\raisebox{0pt}[\dimexpr\height-0.75\baselineskip\relax]{
7878
\includegraphics[width=60mm]{images/sheets.png}}%
7979
\end{wrapfigure}

src/content/3.4/Monads - Programmer's Definition.tex

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -264,8 +264,7 @@ \section{Fish Anatomy}
264264
join (Writer ((Writer (a, w')), w)) = Writer (a, w `mappend` w')
265265
\end{Verbatim}
266266

267-
\section{\texorpdfstring{The \code{do}
268-
Notation}{The do Notation}}
267+
\section{The \texttt{do} Notation}
269268

270269
One way of writing code using monads is to work with Kleisli arrows ---
271270
composing them using the fish operator. This mode of programming is the

src/content/3.5/Monads and Effects.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -454,11 +454,11 @@ \subsection{Continuations}
454454
\code{hb} is called from the innermost layer of the computation.
455455
Here's the full instance:
456456

457-
\begin{Verbatim}
457+
\begin{minted}[breaklines,fontsize=\small]{text}
458458
instance Monad (Cont r) where
459459
ka >>= kab = Cont (\hb -> runCont ka (\a -> runCont (kab a) hb))
460460
return a = Cont (\ha -> ha a)
461-
\end{Verbatim}
461+
\end{minted}
462462

463463
\subsection{Interactive Input}
464464

src/content/3.9/Algebras for Monads.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
but we can also answer a few interesting questions.
55
\begin{wrapfigure}[8]{R}{0pt}
66
\raisebox{0pt}[\dimexpr\height-0.75\baselineskip\relax]{
7-
\fbox{\includegraphics[width=1.27083in]{images/pigalg.png}}}%
7+
\includegraphics[width=1.27083in]{images/pigalg.png}}%
88
\end{wrapfigure}
99

1010
One such question

0 commit comments

Comments
 (0)