git.iko.soy/typeable/pandoc
on 1.3 help sign in
typeable/pandoc/tests/lhs-test.html
79 lines 2.6 kB history raw
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"
3><head
4 ><title
5 ></title
6 ><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"
7 /><meta name="generator" content="pandoc"
8 /><style type="text/css"
9 >
10table.sourceCode, tr.sourceCode, td.lineNumbers, td.sourceCode, table.sourceCode pre
11 { margin: 0; padding: 0; border: 0; vertical-align: baseline; border: none; }
12td.lineNumbers { border-right: 1px solid #AAAAAA; text-align: right; color: #AAAAAA; padding-right: 5px; padding-left: 5px; }
13td.sourceCode { padding-left: 5px; }
14pre.sourceCode { }
15pre.sourceCode span.Normal { }
16pre.sourceCode span.Keyword { color: #007020; font-weight: bold; }
17pre.sourceCode span.DataType { color: #902000; }
18pre.sourceCode span.DecVal { color: #40a070; }
19pre.sourceCode span.BaseN { color: #40a070; }
20pre.sourceCode span.Float { color: #40a070; }
21pre.sourceCode span.Char { color: #4070a0; }
22pre.sourceCode span.String { color: #4070a0; }
23pre.sourceCode span.Comment { color: #60a0b0; font-style: italic; }
24pre.sourceCode span.Others { color: #007020; }
25pre.sourceCode span.Alert { color: red; font-weight: bold; }
26pre.sourceCode span.Function { color: #06287e; }
27pre.sourceCode span.RegionMarker { }
28pre.sourceCode span.Error { color: red; font-weight: bold; }
29</style
30 ></head
31 ><body
32 ><div id="lhs-test"
33 ><h1
34 >lhs test</h1
35 ><p
36 ><code
37 >unsplit</code
38 > is an arrow that takes a pair of values and combines them to return a single value:</p
39 ><pre class="sourceCode haskell"
40 ><code
41 ><span class="Function FunctionDefinition"
42 >unsplit ::</span
43 ><span class="Normal NormalText"
44 > (Arrow a) =&gt; (b -&gt; c -&gt; d) -&gt; a (b, c) d</span
45 ><br
46 /><span class="Normal NormalText"
47 >unsplit = arr . </span
48 ><span class="Function"
49 >uncurry</span
50 ><span class="Normal NormalText"
51 > </span
52 ><br
53 /><span class="Normal NormalText"
54 > </span
55 ><span class="Comment"
56 >-- arr (\op (x,y) -&gt; x `op` y) </span
57 ><br
58 /></code
59 ></pre
60 ><p
61 ><code
62 >(***)</code
63 > 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
64 ><pre
65 ><code
66 >f *** g = first f &gt;&gt;&gt; second g
67</code
68 ></pre
69 ><p
70 >Block quote:</p
71 ><blockquote
72 ><p
73 >foo bar</p
74 ></blockquote
75 ></div
76 ></body
77 ></html