Skip to content

Commit

Permalink
Revise everything (3)
Browse files Browse the repository at this point in the history
  • Loading branch information
jpvillaisaza committed Apr 20, 2014
1 parent 3d35882 commit a71c72b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
3 changes: 2 additions & 1 deletion cain.bib
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ @book{adamek-et-al-2006
}

@online{agda,
author = {Agda Team, The},
author = {{The Agda Team}},
sortname = {Agda Team, The},
title = {The Agda Wiki},
date = {2014},
url = {http://wiki.portal.chalmers.se/agda/},
Expand Down
6 changes: 4 additions & 2 deletions introduction.tex
Original file line number Diff line number Diff line change
Expand Up @@ -274,8 +274,10 @@ \section{Notes}
\item
The Agda code was tested with Agda 2.3.2.2 and the Agda standard
library 0.7 \parencite{danielsson-2013}. We omit a lot of details
such as import declarations, but all the code can be found in a Git
repository which is available at
such as import declarations.

\item
All the code can be found in a Git repository which is available at
\url{https://github.com/jpvillaisaza/abel}.

\end{itemize}
Expand Down
4 changes: 2 additions & 2 deletions monads.tex
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ \chapter{Monads and Kleisli Triples}
\end{codehaskell}
Or, equivalently, desugaring the list comprehension:
\begin{codehaskell}
cartesian xs ys = xs >>= \ x -> ys >>= \ y -> return (x,y)
cartesian xs ys = xs >>= \x -> ys >>= \y -> return (x,y)
\end{codehaskell}
This is but one simple example to show that ``a monad is often an
obvious and useful tool to help solve a problem''
Expand Down Expand Up @@ -1298,7 +1298,7 @@ \subsection{Equivalence of Monads and Kleisli Triples in Haskell}
fmap f mx = bind (return . f) mx

liftM :: Monad m => (a -> b) -> m a -> m b
liftM f m x = mx >>= (return . f)
liftM f mx = mx >>= (return . f)
\end{codehaskell}
This definition of \texthaskell{fmap} is just
\eqref{eq:triple-to-endofunctor-morphism-function}. Finally, the
Expand Down

0 comments on commit a71c72b

Please sign in to comment.