2019-03-13 20:22:28 -04:00
% Options for packages loaded elsewhere
2019-03-23 00:35:55 -04:00
\PassOptionsToPackage{unicode}{hyperref}
2017-08-14 13:19:54 -07:00
\PassOptionsToPackage{hyphens}{url}
%
2019-01-01 17:47:02 -05:00
\documentclass[
]{article}
2012-06-05 11:52:57 -07:00
\usepackage{lmodern}
2010-07-20 21:06:32 -07:00
\usepackage{amssymb,amsmath}
2012-06-05 22:25:54 -07:00
\usepackage{ifxetex,ifluatex}
\ifnum 0\ifxetex 1\fi\ifluatex 1\fi=0 % if pdftex
2014-02-20 09:43:02 -08:00
\usepackage[T1]{fontenc}
2012-06-05 11:52:57 -07:00
\usepackage[utf8]{inputenc}
2019-04-02 20:18:36 -04:00
\usepackage{textcomp} % provide euro and other symbols
2019-03-23 00:35:55 -04:00
\else % if luatex or xetex
2017-02-06 10:50:36 +01:00
\usepackage{unicode-math}
2019-01-12 20:39:47 -05:00
\defaultfontfeatures{Scale=MatchLowercase}
\defaultfontfeatures[\rmfamily]{Ligatures=TeX,Scale=1}
2011-07-22 13:56:04 -07:00
\fi
2019-03-13 20:22:28 -04:00
% Use upquote if available, for straight quotes in verbatim environments
2014-05-06 20:20:28 -07:00
\IfFileExists{upquote.sty}{\usepackage{upquote}}{}
2019-01-01 17:47:02 -05:00
\IfFileExists{microtype.sty}{% use microtype if available
\usepackage[]{microtype}
\UseMicrotypeSet[protrusion]{basicmath} % disable protrusion for tt fonts
2014-08-20 09:47:47 -07:00
}{}
2018-12-11 18:21:45 -03:00
\makeatletter
2019-01-01 17:47:02 -05:00
\@ifundefined{KOMAClassName}{% if non-KOMA class
2018-12-11 15:22:31 -03:00
\IfFileExists{parskip.sty}{%
2018-12-11 18:21:45 -03:00
\usepackage{parskip}
2018-12-11 15:22:31 -03:00
}{% else
2018-12-11 18:21:45 -03:00
\setlength{\parindent}{0pt}
\setlength{\parskip}{6pt plus 2pt minus 1pt}}
2019-01-01 17:47:02 -05:00
}{% if KOMA class
2018-12-11 18:21:45 -03:00
\KOMAoptions{parskip=half}}
\makeatother
2019-01-02 22:34:17 -05:00
\usepackage{xcolor}
2019-01-01 17:47:02 -05:00
\IfFileExists{xurl.sty}{\usepackage{xurl}}{} % add URL line breaks if available
\IfFileExists{bookmark.sty}{\usepackage{bookmark}}{\usepackage{hyperref}}
2016-06-07 10:08:49 -07:00
\hypersetup{
2019-03-13 20:22:28 -04:00
hidelinks,
2019-03-26 00:36:14 -04:00
pdfcreator={LaTeX via pandoc}}
2019-03-13 20:22:28 -04:00
\urlstyle{same} % disable monospaced font for URLs
2011-12-27 18:08:06 -08:00
\usepackage{color}
\usepackage{fancyvrb}
2013-05-07 20:22:09 -07:00
\newcommand{\VerbBar}{|}
2013-06-26 20:54:31 -07:00
\newcommand{\VERB}{\Verb[commandchars=\\\{\}]}
2011-12-27 18:08:06 -08:00
\DefineVerbatimEnvironment{Highlighting}{Verbatim}{commandchars=\\\{\}}
% Add ',fontsize=\small' for more characters per line
\newenvironment{Shaded}{}{}
2017-12-08 12:16:32 -08:00
\newcommand{\AlertTok}[1]{\textcolor[rgb]{1.00,0.00,0.00}{\textbf{#1}}}
\newcommand{\AnnotationTok}[1]{\textcolor[rgb]{0.38,0.63,0.69}{\textbf{\textit{#1}}}}
\newcommand{\AttributeTok}[1]{\textcolor[rgb]{0.49,0.56,0.16}{#1}}
2017-01-31 14:45:25 +01:00
\newcommand{\BaseNTok}[1]{\textcolor[rgb]{0.25,0.63,0.44}{#1}}
2017-12-08 12:16:32 -08:00
\newcommand{\BuiltInTok}[1]{#1}
2017-01-31 14:45:25 +01:00
\newcommand{\CharTok}[1]{\textcolor[rgb]{0.25,0.44,0.63}{#1}}
\newcommand{\CommentTok}[1]{\textcolor[rgb]{0.38,0.63,0.69}{\textit{#1}}}
\newcommand{\CommentVarTok}[1]{\textcolor[rgb]{0.38,0.63,0.69}{\textbf{\textit{#1}}}}
2017-12-08 12:16:32 -08:00
\newcommand{\ConstantTok}[1]{\textcolor[rgb]{0.53,0.00,0.00}{#1}}
2017-01-31 14:45:25 +01:00
\newcommand{\ControlFlowTok}[1]{\textcolor[rgb]{0.00,0.44,0.13}{\textbf{#1}}}
2017-12-08 12:16:32 -08:00
\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{\DocumentationTok}[1]{\textcolor[rgb]{0.73,0.13,0.13}{\textit{#1}}}
\newcommand{\ErrorTok}[1]{\textcolor[rgb]{1.00,0.00,0.00}{\textbf{#1}}}
2017-01-31 14:45:25 +01:00
\newcommand{\ExtensionTok}[1]{#1}
2017-12-08 12:16:32 -08:00
\newcommand{\FloatTok}[1]{\textcolor[rgb]{0.25,0.63,0.44}{#1}}
\newcommand{\FunctionTok}[1]{\textcolor[rgb]{0.02,0.16,0.49}{#1}}
\newcommand{\ImportTok}[1]{#1}
\newcommand{\InformationTok}[1]{\textcolor[rgb]{0.38,0.63,0.69}{\textbf{\textit{#1}}}}
\newcommand{\KeywordTok}[1]{\textcolor[rgb]{0.00,0.44,0.13}{\textbf{#1}}}
\newcommand{\NormalTok}[1]{#1}
\newcommand{\OperatorTok}[1]{\textcolor[rgb]{0.40,0.40,0.40}{#1}}
\newcommand{\OtherTok}[1]{\textcolor[rgb]{0.00,0.44,0.13}{#1}}
2017-01-31 14:45:25 +01:00
\newcommand{\PreprocessorTok}[1]{\textcolor[rgb]{0.74,0.48,0.00}{#1}}
\newcommand{\RegionMarkerTok}[1]{#1}
2017-12-08 12:16:32 -08:00
\newcommand{\SpecialCharTok}[1]{\textcolor[rgb]{0.25,0.44,0.63}{#1}}
\newcommand{\SpecialStringTok}[1]{\textcolor[rgb]{0.73,0.40,0.53}{#1}}
\newcommand{\StringTok}[1]{\textcolor[rgb]{0.25,0.44,0.63}{#1}}
\newcommand{\VariableTok}[1]{\textcolor[rgb]{0.10,0.09,0.49}{#1}}
\newcommand{\VerbatimStringTok}[1]{\textcolor[rgb]{0.25,0.44,0.63}{#1}}
2017-01-31 14:45:25 +01:00
\newcommand{\WarningTok}[1]{\textcolor[rgb]{0.38,0.63,0.69}{\textbf{\textit{#1}}}}
2019-03-13 20:22:28 -04:00
\setlength{\emergencystretch}{3em} % prevent overfull lines
2015-05-02 10:16:26 -07:00
\providecommand{\tightlist}{%
2014-08-27 20:35:57 +00:00
\setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}}
2019-03-04 18:58:20 -05:00
\setcounter{secnumdepth}{-\maxdimen} % remove section numbering
2016-09-28 12:01:42 +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 14:36:47 -08:00
\date{}
2009-02-07 19:20:49 +00:00
\begin{document}
2017-03-01 21:38:28 +01:00
\hypertarget{lhs-test}{%
\section{lhs test}\label{lhs-test}}
2009-02-07 19:20:49 +00:00
2011-07-22 12:19:34 -07:00
\texttt{unsplit} is an arrow that takes a pair of values and combines them to
2011-01-06 21:04:57 -08:00
return a single value:
2009-02-07 19:20:49 +00:00
2011-12-27 18:08:06 -08:00
\begin{Shaded}
\begin{Highlighting}[]
2019-06-13 19:33:52 -07:00
\OtherTok{unsplit ::}\NormalTok{ (}\DataTypeTok{Arrow}\NormalTok{ a) }\OtherTok{=>}\NormalTok{ (b }\OtherTok{{-}>}\NormalTok{ c }\OtherTok{{-}>}\NormalTok{ d) }\OtherTok{{-}>}\NormalTok{ a (b, c) d}
2019-02-10 08:06:53 -08:00
\NormalTok{unsplit }\OtherTok{=}\NormalTok{ arr }\OperatorTok{.} \FunctionTok{uncurry}
2019-06-13 19:33:52 -07:00
\CommentTok{{-}{-} arr (\textbackslash{}op (x,y) {-}> x \textasciigrave{}op\textasciigrave{} y)}
2011-12-27 18:08:06 -08:00
\end{Highlighting}
\end{Shaded}
2012-05-14 07:04:07 -07:00
2015-12-12 16:22:31 -08: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 19:20:49 +00:00
\begin{verbatim}
f *** g = first f >>> second g
\end{verbatim}
2012-04-30 09:26:15 -07:00
2009-02-14 04:08:18 +00:00
Block quote:
2009-02-07 19:20:49 +00:00
\begin{quote}
2009-02-14 04:08:18 +00:00
foo bar
2009-02-07 19:20:49 +00:00
\end{quote}
2009-12-31 01:18:35 +00:00
2009-02-07 19:20:49 +00:00
\end{document}