Skip to content

Commit a5fbb28

Browse files
ktgw0316drupol
authored andcommitted
style: Wrap long line of code
1 parent 704ed09 commit a5fbb28

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

src/content/1.4/kleisli-categories.tex

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,8 +241,9 @@ \section{The Writer Category}
241241
of \code{toUpper} and \code{toWords} using this new template:
242242

243243
\begin{snip}{cpp}
244-
Writer<vector<string>> process(string s) {
245-
return compose<string, string, vector<string>>(toUpper, toWords)(s);
244+
Writer<vector<string>> process(string s) {
245+
return compose<string, string, vector<string>>(
246+
toUpper, toWords)(s);
246247
}
247248
\end{snip}
248249
There is still a lot of noise with the passing of types to the
Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,8 @@
1-
f (Left n) = if n < 0 then "Negative int" else "Positive int"
2-
f (Right x) = if x < 0.0 then "Negative double" else "Positive double"
1+
f (Left n) =
2+
if n < 0
3+
then "Negative int"
4+
else "Positive int"
5+
f (Right x) =
6+
if x < 0.0
7+
then "Negative double"
8+
else "Positive double"

0 commit comments

Comments
 (0)