2011-12-29 22:24:05 +01:00
|
|
|
\documentclass[]{article}
|
2012-06-05 20:52:57 +02:00
|
|
|
\usepackage{lmodern}
|
2010-07-21 06:06:32 +02:00
|
|
|
\usepackage{amssymb,amsmath}
|
2012-06-06 07:25:54 +02:00
|
|
|
\usepackage{ifxetex,ifluatex}
|
2012-04-21 18:59:36 +02:00
|
|
|
\usepackage{fixltx2e} % provides \textsubscript
|
2012-06-06 07:25:54 +02:00
|
|
|
\ifnum 0\ifxetex 1\fi\ifluatex 1\fi=0 % if pdftex
|
2014-02-20 18:43:02 +01:00
|
|
|
\usepackage[T1]{fontenc}
|
2012-06-05 20:52:57 +02:00
|
|
|
\usepackage[utf8]{inputenc}
|
2012-06-06 07:25:54 +02:00
|
|
|
\else % if luatex or xelatex
|
|
|
|
\ifxetex
|
2013-04-26 17:59:18 +02:00
|
|
|
\usepackage{mathspec}
|
|
|
|
\else
|
|
|
|
\usepackage{fontspec}
|
2011-07-22 22:56:04 +02:00
|
|
|
\fi
|
2015-10-19 06:58:10 +02:00
|
|
|
\defaultfontfeatures{Ligatures=TeX,Scale=MatchLowercase}
|
2011-07-22 22:56:04 +02:00
|
|
|
\fi
|
2014-05-07 05:20:28 +02:00
|
|
|
% use upquote if available, for straight quotes in verbatim environments
|
|
|
|
\IfFileExists{upquote.sty}{\usepackage{upquote}}{}
|
2013-02-28 04:42:54 +01:00
|
|
|
% use microtype if available
|
2014-08-20 18:47:47 +02:00
|
|
|
\IfFileExists{microtype.sty}{%
|
|
|
|
\usepackage{microtype}
|
|
|
|
\UseMicrotypeSet[protrusion]{basicmath} % disable protrusion for tt fonts
|
|
|
|
}{}
|
2015-10-21 00:22:52 +02:00
|
|
|
\usepackage{hyperref}
|
2015-11-13 01:09:41 +01:00
|
|
|
\hypersetup{unicode=true,
|
|
|
|
pdfborder={0 0 0},
|
|
|
|
breaklinks=true}
|
2015-05-27 21:23:45 +02:00
|
|
|
\urlstyle{same} % don't use monospace font for urls
|
2011-12-28 03:08:06 +01:00
|
|
|
\usepackage{color}
|
|
|
|
\usepackage{fancyvrb}
|
2013-05-08 05:22:09 +02:00
|
|
|
\newcommand{\VerbBar}{|}
|
2013-06-27 05:54:31 +02:00
|
|
|
\newcommand{\VERB}{\Verb[commandchars=\\\{\}]}
|
2011-12-28 03:08:06 +01:00
|
|
|
\DefineVerbatimEnvironment{Highlighting}{Verbatim}{commandchars=\\\{\}}
|
|
|
|
% Add ',fontsize=\small' for more characters per line
|
|
|
|
\newenvironment{Shaded}{}{}
|
|
|
|
\newcommand{\KeywordTok}[1]{\textcolor[rgb]{0.00,0.44,0.13}{\textbf{{#1}}}}
|
|
|
|
\newcommand{\DataTypeTok}[1]{\textcolor[rgb]{0.56,0.13,0.00}{{#1}}}
|
|
|
|
\newcommand{\DecValTok}[1]{\textcolor[rgb]{0.25,0.63,0.44}{{#1}}}
|
|
|
|
\newcommand{\BaseNTok}[1]{\textcolor[rgb]{0.25,0.63,0.44}{{#1}}}
|
|
|
|
\newcommand{\FloatTok}[1]{\textcolor[rgb]{0.25,0.63,0.44}{{#1}}}
|
2015-05-27 02:11:28 +02:00
|
|
|
\newcommand{\ConstantTok}[1]{\textcolor[rgb]{0.53,0.00,0.00}{{#1}}}
|
2011-12-28 03:08:06 +01:00
|
|
|
\newcommand{\CharTok}[1]{\textcolor[rgb]{0.25,0.44,0.63}{{#1}}}
|
2015-05-27 02:11:28 +02:00
|
|
|
\newcommand{\SpecialCharTok}[1]{\textcolor[rgb]{0.25,0.44,0.63}{{#1}}}
|
2011-12-28 03:08:06 +01:00
|
|
|
\newcommand{\StringTok}[1]{\textcolor[rgb]{0.25,0.44,0.63}{{#1}}}
|
2015-05-27 02:11:28 +02:00
|
|
|
\newcommand{\VerbatimStringTok}[1]{\textcolor[rgb]{0.25,0.44,0.63}{{#1}}}
|
|
|
|
\newcommand{\SpecialStringTok}[1]{\textcolor[rgb]{0.73,0.40,0.53}{{#1}}}
|
|
|
|
\newcommand{\ImportTok}[1]{{#1}}
|
2011-12-28 03:08:06 +01:00
|
|
|
\newcommand{\CommentTok}[1]{\textcolor[rgb]{0.38,0.63,0.69}{\textit{{#1}}}}
|
2015-05-27 02:11:28 +02:00
|
|
|
\newcommand{\DocumentationTok}[1]{\textcolor[rgb]{0.73,0.13,0.13}{\textit{{#1}}}}
|
|
|
|
\newcommand{\AnnotationTok}[1]{\textcolor[rgb]{0.38,0.63,0.69}{\textbf{\textit{{#1}}}}}
|
|
|
|
\newcommand{\CommentVarTok}[1]{\textcolor[rgb]{0.38,0.63,0.69}{\textbf{\textit{{#1}}}}}
|
2011-12-28 03:08:06 +01:00
|
|
|
\newcommand{\OtherTok}[1]{\textcolor[rgb]{0.00,0.44,0.13}{{#1}}}
|
|
|
|
\newcommand{\FunctionTok}[1]{\textcolor[rgb]{0.02,0.16,0.49}{{#1}}}
|
2015-05-27 02:11:28 +02:00
|
|
|
\newcommand{\VariableTok}[1]{\textcolor[rgb]{0.10,0.09,0.49}{{#1}}}
|
|
|
|
\newcommand{\ControlFlowTok}[1]{\textcolor[rgb]{0.00,0.44,0.13}{\textbf{{#1}}}}
|
|
|
|
\newcommand{\OperatorTok}[1]{\textcolor[rgb]{0.40,0.40,0.40}{{#1}}}
|
|
|
|
\newcommand{\BuiltInTok}[1]{{#1}}
|
|
|
|
\newcommand{\ExtensionTok}[1]{{#1}}
|
|
|
|
\newcommand{\PreprocessorTok}[1]{\textcolor[rgb]{0.74,0.48,0.00}{{#1}}}
|
|
|
|
\newcommand{\AttributeTok}[1]{\textcolor[rgb]{0.49,0.56,0.16}{{#1}}}
|
2011-12-28 03:08:06 +01:00
|
|
|
\newcommand{\RegionMarkerTok}[1]{{#1}}
|
2015-05-27 02:11:28 +02:00
|
|
|
\newcommand{\InformationTok}[1]{\textcolor[rgb]{0.38,0.63,0.69}{\textbf{\textit{{#1}}}}}
|
|
|
|
\newcommand{\WarningTok}[1]{\textcolor[rgb]{0.38,0.63,0.69}{\textbf{\textit{{#1}}}}}
|
|
|
|
\newcommand{\AlertTok}[1]{\textcolor[rgb]{1.00,0.00,0.00}{\textbf{{#1}}}}
|
2011-12-28 03:08:06 +01:00
|
|
|
\newcommand{\ErrorTok}[1]{\textcolor[rgb]{1.00,0.00,0.00}{\textbf{{#1}}}}
|
|
|
|
\newcommand{\NormalTok}[1]{{#1}}
|
2009-02-07 20:20:49 +01:00
|
|
|
\setlength{\parindent}{0pt}
|
|
|
|
\setlength{\parskip}{6pt plus 2pt minus 1pt}
|
2011-07-22 22:56:04 +02:00
|
|
|
\setlength{\emergencystretch}{3em} % prevent overfull lines
|
2015-05-02 19:16:26 +02:00
|
|
|
\providecommand{\tightlist}{%
|
2014-08-27 22:35:57 +02:00
|
|
|
\setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}}
|
2009-02-07 20:20:49 +01:00
|
|
|
\setcounter{secnumdepth}{0}
|
2015-04-18 03:38:57 +02:00
|
|
|
% Redefines (sub)paragraphs to behave more like sections
|
2015-05-04 19:05:11 +02:00
|
|
|
\ifx\paragraph\undefined\else
|
2015-04-18 03:38:57 +02:00
|
|
|
\let\oldparagraph\paragraph
|
|
|
|
\renewcommand{\paragraph}[1]{\oldparagraph{#1}\mbox{}}
|
2015-05-04 19:05:11 +02:00
|
|
|
\fi
|
|
|
|
\ifx\subparagraph\undefined\else
|
2015-04-18 03:38:57 +02:00
|
|
|
\let\oldsubparagraph\subparagraph
|
|
|
|
\renewcommand{\subparagraph}[1]{\oldsubparagraph{#1}\mbox{}}
|
2015-05-04 19:05:11 +02:00
|
|
|
\fi
|
2015-04-18 03:38:57 +02:00
|
|
|
|
latex template changes.
* Removed setting of `subject` in PDF metadata.
This used to be set to the subtitle, but really the subtitle
need not give the subject. Also, `subtitle` can contain formatting,
so we'd need, at least, a plain text version for this.
* Moved `header-includes` before setting of `\title`, `\author`,
etc. This allows these macros to be redefined.
* Use `\subtitle` command for `subtitle`, instead of tacking it
on to the title as before. We give a no-op fallback definition if it is
not defined. This change should produce much better results
in classes that support `\subtitle`. With the default article
class, which does not define `\subtitle`, subtitles will no
longer be printed unless the user defines `\subtitle` and
redefines `\maketitle`.
* Moved redefinitions of `\paragraph` and `\subparagraph` to
before header-includes.
2015-11-20 23:36:47 +01:00
|
|
|
\date{}
|
|
|
|
|
2009-02-07 20:20:49 +01:00
|
|
|
\begin{document}
|
|
|
|
|
2014-12-15 19:03:19 +01:00
|
|
|
\section{lhs test}\label{lhs-test}
|
2009-02-07 20:20:49 +01:00
|
|
|
|
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
|
|
|
|
2011-12-28 03:08:06 +01:00
|
|
|
\begin{Shaded}
|
|
|
|
\begin{Highlighting}[]
|
|
|
|
\OtherTok{unsplit ::} \NormalTok{(}\DataTypeTok{Arrow} \NormalTok{a) }\OtherTok{=>} \NormalTok{(b }\OtherTok{->} \NormalTok{c }\OtherTok{->} \NormalTok{d) }\OtherTok{->} \NormalTok{a (b, c) d}
|
2013-07-24 05:31:49 +02:00
|
|
|
\NormalTok{unsplit }\FunctionTok{=} \NormalTok{arr }\FunctionTok{.} \NormalTok{uncurry}
|
2013-01-27 01:09:41 +01:00
|
|
|
\CommentTok{-- arr (\textbackslash{}op (x,y) -> x `op` y)}
|
2011-12-28 03:08:06 +01:00
|
|
|
\end{Highlighting}
|
|
|
|
\end{Shaded}
|
2012-05-14 16:04:07 +02:00
|
|
|
|
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}
|
2012-04-30 18:26:15 +02:00
|
|
|
|
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}
|