git.iko.soy/typeable/pandoc
on 2.14.0.3 help sign in
typeable/pandoc/test/lhs-test.html
230 lines 7.8 kB history raw
1<!DOCTYPE html>
2<html xmlns="http://www.w3.org/1999/xhtml" lang="" xml:lang="">
3<head>
4 <meta charset="utf-8" />
5 <meta name="generator" content="pandoc" />
6 <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" />
7 <title>lhs-test</title>
8 <style>
9 html {
10 line-height: 1.5;
11 font-family: Georgia, serif;
12 font-size: 20px;
13 color: #1a1a1a;
14 background-color: #fdfdfd;
15 }
16 body {
17 margin: 0 auto;
18 max-width: 36em;
19 padding-left: 50px;
20 padding-right: 50px;
21 padding-top: 50px;
22 padding-bottom: 50px;
23 hyphens: auto;
24 word-wrap: break-word;
25 text-rendering: optimizeLegibility;
26 font-kerning: normal;
27 }
28 @media (max-width: 600px) {
29 body {
30 font-size: 0.9em;
31 padding: 1em;
32 }
33 }
34 @media print {
35 body {
36 background-color: transparent;
37 color: black;
38 font-size: 12pt;
39 }
40 p, h2, h3 {
41 orphans: 3;
42 widows: 3;
43 }
44 h2, h3, h4 {
45 page-break-after: avoid;
46 }
47 }
48 p {
49 margin: 1em 0;
50 }
51 a {
52 color: #1a1a1a;
53 }
54 a:visited {
55 color: #1a1a1a;
56 }
57 img {
58 max-width: 100%;
59 }
60 h1, h2, h3, h4, h5, h6 {
61 margin-top: 1.4em;
62 }
63 h5, h6 {
64 font-size: 1em;
65 font-style: italic;
66 }
67 h6 {
68 font-weight: normal;
69 }
70 ol, ul {
71 padding-left: 1.7em;
72 margin-top: 1em;
73 }
74 li > ol, li > ul {
75 margin-top: 0;
76 }
77 blockquote {
78 margin: 1em 0 1em 1.7em;
79 padding-left: 1em;
80 border-left: 2px solid #e6e6e6;
81 color: #606060;
82 }
83 code {
84 font-family: Menlo, Monaco, 'Lucida Console', Consolas, monospace;
85 font-size: 85%;
86 margin: 0;
87 }
88 pre {
89 margin: 1em 0;
90 overflow: auto;
91 }
92 pre code {
93 padding: 0;
94 overflow: visible;
95 }
96 .sourceCode {
97 background-color: transparent;
98 overflow: visible;
99 }
100 hr {
101 background-color: #1a1a1a;
102 border: none;
103 height: 1px;
104 margin: 1em 0;
105 }
106 table {
107 margin: 1em 0;
108 border-collapse: collapse;
109 width: 100%;
110 overflow-x: auto;
111 display: block;
112 font-variant-numeric: lining-nums tabular-nums;
113 }
114 table caption {
115 margin-bottom: 0.75em;
116 }
117 tbody {
118 margin-top: 0.5em;
119 border-top: 1px solid #1a1a1a;
120 border-bottom: 1px solid #1a1a1a;
121 }
122 th {
123 border-top: 1px solid #1a1a1a;
124 padding: 0.25em 0.5em 0.25em 0.5em;
125 }
126 td {
127 padding: 0.125em 0.5em 0.25em 0.5em;
128 }
129 header {
130 margin-bottom: 4em;
131 text-align: center;
132 }
133 #TOC li {
134 list-style: none;
135 }
136 #TOC a:not(:hover) {
137 text-decoration: none;
138 }
139 code{white-space: pre-wrap;}
140 span.smallcaps{font-variant: small-caps;}
141 span.underline{text-decoration: underline;}
142 div.column{display: inline-block; vertical-align: top; width: 50%;}
143 div.hanging-indent{margin-left: 1.5em; text-indent: -1.5em;}
144 ul.task-list{list-style: none;}
145 pre > code.sourceCode { white-space: pre; position: relative; }
146 pre > code.sourceCode > span { display: inline-block; line-height: 1.25; }
147 pre > code.sourceCode > span:empty { height: 1.2em; }
148 .sourceCode { overflow: visible; }
149 code.sourceCode > span { color: inherit; text-decoration: inherit; }
150 div.sourceCode { margin: 1em 0; }
151 pre.sourceCode { margin: 0; }
152 @media screen {
153 div.sourceCode { overflow: auto; }
154 }
155 @media print {
156 pre > code.sourceCode { white-space: pre-wrap; }
157 pre > code.sourceCode > span { text-indent: -5em; padding-left: 5em; }
158 }
159 pre.numberSource code
160 { counter-reset: source-line 0; }
161 pre.numberSource code > span
162 { position: relative; left: -4em; counter-increment: source-line; }
163 pre.numberSource code > span > a:first-child::before
164 { content: counter(source-line);
165 position: relative; left: -1em; text-align: right; vertical-align: baseline;
166 border: none; display: inline-block;
167 -webkit-touch-callout: none; -webkit-user-select: none;
168 -khtml-user-select: none; -moz-user-select: none;
169 -ms-user-select: none; user-select: none;
170 padding: 0 4px; width: 4em;
171 color: #aaaaaa;
172 }
173 pre.numberSource { margin-left: 3em; border-left: 1px solid #aaaaaa; padding-left: 4px; }
174 div.sourceCode
175 { }
176 @media screen {
177 pre > code.sourceCode > span > a:first-child::before { text-decoration: underline; }
178 }
179 code span.al { color: #ff0000; font-weight: bold; } /* Alert */
180 code span.an { color: #60a0b0; font-weight: bold; font-style: italic; } /* Annotation */
181 code span.at { color: #7d9029; } /* Attribute */
182 code span.bn { color: #40a070; } /* BaseN */
183 code span.bu { } /* BuiltIn */
184 code span.cf { color: #007020; font-weight: bold; } /* ControlFlow */
185 code span.ch { color: #4070a0; } /* Char */
186 code span.cn { color: #880000; } /* Constant */
187 code span.co { color: #60a0b0; font-style: italic; } /* Comment */
188 code span.cv { color: #60a0b0; font-weight: bold; font-style: italic; } /* CommentVar */
189 code span.do { color: #ba2121; font-style: italic; } /* Documentation */
190 code span.dt { color: #902000; } /* DataType */
191 code span.dv { color: #40a070; } /* DecVal */
192 code span.er { color: #ff0000; font-weight: bold; } /* Error */
193 code span.ex { } /* Extension */
194 code span.fl { color: #40a070; } /* Float */
195 code span.fu { color: #06287e; } /* Function */
196 code span.im { } /* Import */
197 code span.in { color: #60a0b0; font-weight: bold; font-style: italic; } /* Information */
198 code span.kw { color: #007020; font-weight: bold; } /* Keyword */
199 code span.op { color: #666666; } /* Operator */
200 code span.ot { color: #007020; } /* Other */
201 code span.pp { color: #bc7a00; } /* Preprocessor */
202 code span.sc { color: #4070a0; } /* SpecialChar */
203 code span.ss { color: #bb6688; } /* SpecialString */
204 code span.st { color: #4070a0; } /* String */
205 code span.va { color: #19177c; } /* Variable */
206 code span.vs { color: #4070a0; } /* VerbatimString */
207 code span.wa { color: #60a0b0; font-weight: bold; font-style: italic; } /* Warning */
208 .display.math{display: block; text-align: center; margin: 0.5rem auto;}
209 </style>
210 <!--[if lt IE 9]>
211 <script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv-printshiv.min.js"></script>
212 <![endif]-->
213</head>
214<body>
215<h1 id="lhs-test">lhs test</h1>
216<p><code>unsplit</code> is an arrow that takes a pair of values and combines them to
217return a single value:</p>
218<div class="sourceCode" id="cb1"><pre class="sourceCode haskell literate"><code class="sourceCode haskell"><span id="cb1-1"><a href="#cb1-1" aria-hidden="true" tabindex="-1"></a><span class="ot">unsplit ::</span> (<span class="dt">Arrow</span> a) <span class="ot">=&gt;</span> (b <span class="ot">-&gt;</span> c <span class="ot">-&gt;</span> d) <span class="ot">-&gt;</span> a (b, c) d</span>
219<span id="cb1-2"><a href="#cb1-2" aria-hidden="true" tabindex="-1"></a>unsplit <span class="ot">=</span> arr <span class="op">.</span> <span class="fu">uncurry</span></span>
220<span id="cb1-3"><a href="#cb1-3" aria-hidden="true" tabindex="-1"></a> <span class="co">-- arr (\op (x,y) -&gt; x `op` y)</span></span></code></pre></div>
221<p><code>(***)</code> combines two arrows into a new arrow by running the two arrows on a
222pair of values (one arrow on the first item of the pair and one arrow on the
223second item of the pair).</p>
224<pre><code>f *** g = first f &gt;&gt;&gt; second g</code></pre>
225<p>Block quote:</p>
226<blockquote>
227<p>foo bar</p>
228</blockquote>
229</body>
230</html>