2009-02-07 20:20:49 +01:00
|
|
|
\documentclass{article}
|
2010-07-21 06:06:32 +02:00
|
|
|
\usepackage{amssymb,amsmath}
|
2009-02-07 20:20:49 +01:00
|
|
|
\usepackage[mathletters]{ucs}
|
|
|
|
\usepackage[utf8x]{inputenc}
|
2010-12-13 21:29:27 +01:00
|
|
|
\usepackage[breaklinks=true,unicode=true,pdfborder={0 0 0}]{hyperref}
|
2009-02-07 20:20:49 +01:00
|
|
|
\setlength{\parindent}{0pt}
|
|
|
|
\setlength{\parskip}{6pt plus 2pt minus 1pt}
|
2011-07-22 21:19:34 +02:00
|
|
|
\setlength{\emergencystretch}{3em} -- prevent overfull lines
|
2009-02-07 20:20:49 +01:00
|
|
|
\setcounter{secnumdepth}{0}
|
2009-12-31 02:18:35 +01:00
|
|
|
|
|
|
|
|
2009-02-07 20:20:49 +01:00
|
|
|
\begin{document}
|
|
|
|
|
|
|
|
\section{lhs test}
|
|
|
|
|
2011-07-22 21:19:34 +02:00
|
|
|
\texttt{unsplit} is an arrow that takes a pair of values and combines them to
|
2011-01-07 06:04:57 +01:00
|
|
|
return a single value:
|
2009-02-07 20:20:49 +01:00
|
|
|
|
|
|
|
\begin{verbatim}
|
|
|
|
unsplit :: (Arrow a) => (b -> c -> d) -> a (b, c) d
|
|
|
|
unsplit = arr . uncurry
|
|
|
|
-- arr (\op (x,y) -> x `op` y)
|
|
|
|
\end{verbatim}
|
2011-07-22 21:19:34 +02:00
|
|
|
\texttt{(***)} combines two arrows into a new arrow by running the two arrows
|
|
|
|
on a pair of values (one arrow on the first item of the pair and one arrow on
|
|
|
|
the second item of the pair).
|
2009-02-07 20:20:49 +01:00
|
|
|
|
|
|
|
\begin{verbatim}
|
|
|
|
f *** g = first f >>> second g
|
|
|
|
\end{verbatim}
|
2009-02-14 05:08:18 +01:00
|
|
|
Block quote:
|
|
|
|
|
2009-02-07 20:20:49 +01:00
|
|
|
\begin{quote}
|
2009-02-14 05:08:18 +01:00
|
|
|
foo bar
|
2009-02-07 20:20:49 +01:00
|
|
|
|
|
|
|
\end{quote}
|
2009-12-31 02:18:35 +01:00
|
|
|
|
2009-02-07 20:20:49 +01:00
|
|
|
\end{document}
|