git.iko.soy/typeable/pandoc
on rc/2.11.0.3 help sign in
typeable/pandoc/test/lhs-test.html+lhs
205 lines 7.4 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.7;
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: 40em;
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 }
39 p, h2, h3 {
40 orphans: 3;
41 widows: 3;
42 }
43 h2, h3, h4 {
44 page-break-after: avoid;
45 }
46 }
47 p {
48 margin-top: 1.7em;
49 }
50 a {
51 color: #1a1a1a;
52 }
53 a:visited {
54 color: #1a1a1a;
55 }
56 img {
57 max-width: 100%;
58 }
59 h1, h2, h3, h4, h5, h6 {
60 margin-top: 1.7em;
61 }
62 ol, ul {
63 padding-left: 1.7em;
64 margin-top: 1.7em;
65 }
66 li > ol, li > ul {
67 margin-top: 0;
68 }
69 blockquote {
70 margin: 1.7em 0 1.7em 1.7em;
71 padding-left: 1em;
72 border-left: 2px solid #e6e6e6;
73 font-style: italic;
74 }
75 code {
76 font-family: Menlo, Monaco, 'Lucida Console', Consolas, monospace;
77 background-color: #f0f0f0;
78 font-size: 85%;
79 margin: 0;
80 padding: .2em .4em;
81 }
82 pre {
83 line-height: 1.5em;
84 padding: 1em;
85 background-color: #f0f0f0;
86 overflow: auto;
87 }
88 pre code {
89 padding: 0;
90 overflow: visible;
91 }
92 hr {
93 background-color: #1a1a1a;
94 border: none;
95 height: 1px;
96 margin-top: 1.7em;
97 }
98 table {
99 border-collapse: collapse;
100 width: 100%;
101 overflow-x: auto;
102 display: block;
103 }
104 th, td {
105 border-bottom: 1px solid lightgray;
106 padding: 1em 3em 1em 0;
107 }
108 header {
109 margin-bottom: 6em;
110 text-align: center;
111 }
112 nav a:not(:hover) {
113 text-decoration: none;
114 }
115 code{white-space: pre-wrap;}
116 span.smallcaps{font-variant: small-caps;}
117 span.underline{text-decoration: underline;}
118 div.column{display: inline-block; vertical-align: top; width: 50%;}
119 div.hanging-indent{margin-left: 1.5em; text-indent: -1.5em;}
120 ul.task-list{list-style: none;}
121 pre > code.sourceCode { white-space: pre; position: relative; }
122 pre > code.sourceCode > span { display: inline-block; line-height: 1.25; }
123 pre > code.sourceCode > span:empty { height: 1.2em; }
124 code.sourceCode > span { color: inherit; text-decoration: inherit; }
125 div.sourceCode { margin: 1em 0; }
126 pre.sourceCode { margin: 0; }
127 @media screen {
128 div.sourceCode { overflow: auto; }
129 }
130 @media print {
131 pre > code.sourceCode { white-space: pre-wrap; }
132 pre > code.sourceCode > span { text-indent: -5em; padding-left: 5em; }
133 }
134 pre.numberSource code
135 { counter-reset: source-line 0; }
136 pre.numberSource code > span
137 { position: relative; left: -4em; counter-increment: source-line; }
138 pre.numberSource code > span > a:first-child::before
139 { content: counter(source-line);
140 position: relative; left: -1em; text-align: right; vertical-align: baseline;
141 border: none; display: inline-block;
142 -webkit-touch-callout: none; -webkit-user-select: none;
143 -khtml-user-select: none; -moz-user-select: none;
144 -ms-user-select: none; user-select: none;
145 padding: 0 4px; width: 4em;
146 color: #aaaaaa;
147 }
148 pre.numberSource { margin-left: 3em; border-left: 1px solid #aaaaaa; padding-left: 4px; }
149 div.sourceCode
150 { }
151 @media screen {
152 pre > code.sourceCode > span > a:first-child::before { text-decoration: underline; }
153 }
154 code span.al { color: #ff0000; font-weight: bold; } /* Alert */
155 code span.an { color: #60a0b0; font-weight: bold; font-style: italic; } /* Annotation */
156 code span.at { color: #7d9029; } /* Attribute */
157 code span.bn { color: #40a070; } /* BaseN */
158 code span.bu { } /* BuiltIn */
159 code span.cf { color: #007020; font-weight: bold; } /* ControlFlow */
160 code span.ch { color: #4070a0; } /* Char */
161 code span.cn { color: #880000; } /* Constant */
162 code span.co { color: #60a0b0; font-style: italic; } /* Comment */
163 code span.cv { color: #60a0b0; font-weight: bold; font-style: italic; } /* CommentVar */
164 code span.do { color: #ba2121; font-style: italic; } /* Documentation */
165 code span.dt { color: #902000; } /* DataType */
166 code span.dv { color: #40a070; } /* DecVal */
167 code span.er { color: #ff0000; font-weight: bold; } /* Error */
168 code span.ex { } /* Extension */
169 code span.fl { color: #40a070; } /* Float */
170 code span.fu { color: #06287e; } /* Function */
171 code span.im { } /* Import */
172 code span.in { color: #60a0b0; font-weight: bold; font-style: italic; } /* Information */
173 code span.kw { color: #007020; font-weight: bold; } /* Keyword */
174 code span.op { color: #666666; } /* Operator */
175 code span.ot { color: #007020; } /* Other */
176 code span.pp { color: #bc7a00; } /* Preprocessor */
177 code span.sc { color: #4070a0; } /* SpecialChar */
178 code span.ss { color: #bb6688; } /* SpecialString */
179 code span.st { color: #4070a0; } /* String */
180 code span.va { color: #19177c; } /* Variable */
181 code span.vs { color: #4070a0; } /* VerbatimString */
182 code span.wa { color: #60a0b0; font-weight: bold; font-style: italic; } /* Warning */
183 .display.math{display: block; text-align: center; margin: 0.5rem auto;}
184 </style>
185 <!--[if lt IE 9]>
186 <script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv-printshiv.min.js"></script>
187 <![endif]-->
188</head>
189<body>
190<h1 id="lhs-test">lhs test</h1>
191<p><code>unsplit</code> is an arrow that takes a pair of values and combines them to
192return a single value:</p>
193<div class="sourceCode" id="cb1"><pre class="sourceCode literatehaskell literate"><code class="sourceCode literatehaskell"><span id="cb1-1"><a href="#cb1-1" aria-hidden="true" tabindex="-1"></a><span class="ot">&gt; 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>
194<span id="cb1-2"><a href="#cb1-2" aria-hidden="true" tabindex="-1"></a><span class="ot">&gt;</span> unsplit <span class="ot">=</span> arr <span class="op">.</span> <span class="fu">uncurry</span></span>
195<span id="cb1-3"><a href="#cb1-3" aria-hidden="true" tabindex="-1"></a><span class="ot">&gt;</span> <span class="co">-- arr (\op (x,y) -&gt; x `op` y)</span></span></code></pre></div>
196<p><code>(***)</code> combines two arrows into a new arrow by running the two arrows on a
197pair of values (one arrow on the first item of the pair and one arrow on the
198second item of the pair).</p>
199<pre><code>f *** g = first f &gt;&gt;&gt; second g</code></pre>
200<p>Block quote:</p>
201<blockquote>
202<p>foo bar</p>
203</blockquote>
204</body>
205</html>