mirror of
https://github.com/hmemcpy/milewski-ctfp-pdf.git
synced 2024-11-23 12:24:40 +03:00
Update Functoriality.tex (#98)
The type :: and definition (=) should be expressed on separate lines, as they are in the blog.
This commit is contained in:
parent
48a71d1510
commit
34b4cd1fbd
@ -436,7 +436,8 @@ m1 >=> m2 = \x ->
|
||||
and the identity morphism by a function called \code{return}:
|
||||
|
||||
\begin{Verbatim}
|
||||
return :: a -> Writer a return x = (x, "")
|
||||
return :: a -> Writer a
|
||||
return x = (x, "")
|
||||
\end{Verbatim}
|
||||
It turns out that, if you look at the types of these two functions long
|
||||
enough (and I mean, \emph{long} enough), you can find a way to combine
|
||||
|
Loading…
Reference in New Issue
Block a user