2<html xmlns="http://www.w3.org/1999/xhtml" lang="" xml:lang="">
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 type="text/css">
9 code{white-space: pre-wrap;}
10 .smallcaps{font-variant: small-caps;}
11 .line-block{white-space: pre-line;}
13 <style type="text/css">
14div.sourceCode { overflow-x: auto; }
15table.sourceCode, tr.sourceCode, td.lineNumbers, td.sourceCode {
16 margin: 0; padding: 0; vertical-align: baseline; border: none; }
17table.sourceCode { width: 100%; line-height: 100%; }
18td.lineNumbers { text-align: right; padding-right: 4px; padding-left: 4px; color: #aaaaaa; border-right: 1px solid #aaaaaa; }
19td.sourceCode { padding-left: 5px; }
20code > span.kw { color: #007020; font-weight: bold; } /* Keyword */
21code > span.dt { color: #902000; } /* DataType */
22code > span.dv { color: #40a070; } /* DecVal */
23code > span.bn { color: #40a070; } /* BaseN */
24code > span.fl { color: #40a070; } /* Float */
25code > span.ch { color: #4070a0; } /* Char */
26code > span.st { color: #4070a0; } /* String */
27code > span.co { color: #60a0b0; font-style: italic; } /* Comment */
28code > span.ot { color: #007020; } /* Other */
29code > span.al { color: #ff0000; font-weight: bold; } /* Alert */
30code > span.fu { color: #06287e; } /* Function */
31code > span.er { color: #ff0000; font-weight: bold; } /* Error */
32code > span.wa { color: #60a0b0; font-weight: bold; font-style: italic; } /* Warning */
33code > span.cn { color: #880000; } /* Constant */
34code > span.sc { color: #4070a0; } /* SpecialChar */
35code > span.vs { color: #4070a0; } /* VerbatimString */
36code > span.ss { color: #bb6688; } /* SpecialString */
37code > span.im { } /* Import */
38code > span.va { color: #19177c; } /* Variable */
39code > span.cf { color: #007020; font-weight: bold; } /* ControlFlow */
40code > span.op { color: #666666; } /* Operator */
41code > span.bu { } /* BuiltIn */
42code > span.ex { } /* Extension */
43code > span.pp { color: #bc7a00; } /* Preprocessor */
44code > span.at { color: #7d9029; } /* Attribute */
45code > span.do { color: #ba2121; font-style: italic; } /* Documentation */
46code > span.an { color: #60a0b0; font-weight: bold; font-style: italic; } /* Annotation */
47code > span.cv { color: #60a0b0; font-weight: bold; font-style: italic; } /* CommentVar */
48code > span.in { color: #60a0b0; font-weight: bold; font-style: italic; } /* Information */
51 <script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv-printshiv.min.js"></script>
55<h1 id="lhs-test">lhs test</h1>
56<p><code>unsplit</code> is an arrow that takes a pair of values and combines them to
57return a single value:</p>
58<div class="sourceCode"><pre class="sourceCode literate haskell"><code class="sourceCode haskell"><span class="ot">unsplit ::</span> (<span class="dt">Arrow</span> a) <span class="ot">=></span> (b <span class="ot">-></span> c <span class="ot">-></span> d) <span class="ot">-></span> a (b, c) d
59unsplit <span class="fu">=</span> arr <span class="fu">.</span> uncurry
60 <span class="co">-- arr (\op (x,y) -> x `op` y)</span></code></pre></div>
61<p><code>(***)</code> combines two arrows into a new arrow by running the two arrows on a
62pair of values (one arrow on the first item of the pair and one arrow on the
63second item of the pair).</p>
64<pre><code>f *** g = first f >>> second g</code></pre>
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list