1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2<html xmlns="http://www.w3.org/1999/xhtml">
4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5 <meta http-equiv="Content-Style-Type" content="text/css" />
6 <meta name="generator" content="pandoc" />
8 <style type="text/css">code{white-space: pre;}</style>
9 <style type="text/css">
10table.sourceCode, tr.sourceCode, td.lineNumbers, td.sourceCode {
11 margin: 0; padding: 0; vertical-align: baseline; border: none; }
12table.sourceCode { width: 100%; line-height: 100%; }
13td.lineNumbers { text-align: right; padding-right: 4px; padding-left: 4px; color: #aaaaaa; border-right: 1px solid #aaaaaa; }
14td.sourceCode { padding-left: 5px; }
15code > span.kw { color: #007020; font-weight: bold; }
16code > span.dt { color: #902000; }
17code > span.dv { color: #40a070; }
18code > span.bn { color: #40a070; }
19code > span.fl { color: #40a070; }
20code > span.ch { color: #4070a0; }
21code > span.st { color: #4070a0; }
22code > span.co { color: #60a0b0; font-style: italic; }
23code > span.ot { color: #007020; }
24code > span.al { color: #ff0000; font-weight: bold; }
25code > span.fu { color: #06287e; }
26code > span.er { color: #ff0000; font-weight: bold; }
30<h1 id="lhs-test">lhs test</h1>
31<p><code>unsplit</code> is an arrow that takes a pair of values and combines them to return a single value:</p>
32<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
33unsplit <span class="fu">=</span> arr <span class="fu">.</span> uncurry
34 <span class="co">-- arr (\op (x,y) -> x `op` y)</span></code></pre>
35<p><code>(***)</code> 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).</p>
36<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