git.iko.soy/typeable/pandoc
on 1.8 help sign in
typeable/pandoc/tests/lhs-test.latex
37 lines 893 B history raw
1\documentclass{article}
2\usepackage{amssymb,amsmath}
3\usepackage[mathletters]{ucs}
4\usepackage[utf8x]{inputenc}
5\usepackage[breaklinks=true,unicode=true,pdfborder={0 0 0}]{hyperref}
6\setlength{\parindent}{0pt}
7\setlength{\parskip}{6pt plus 2pt minus 1pt}
8\setcounter{secnumdepth}{0}
11\begin{document}
13\section{lhs test}
15\verb!unsplit! is an arrow that takes a pair of values and combines them to
16return a single value:
18\begin{verbatim}
19unsplit :: (Arrow a) => (b -> c -> d) -> a (b, c) d
20unsplit = arr . uncurry
21 -- arr (\op (x,y) -> x `op` y)
22\end{verbatim}
23\verb!(***)! combines two arrows into a new arrow by running the two arrows on
24a pair of values (one arrow on the first item of the pair and one arrow on the
25second item of the pair).
27\begin{verbatim}
28f *** g = first f >>> second g
29\end{verbatim}
30Block quote:
32\begin{quote}
33foo bar
35\end{quote}
37\end{document}