git.iko.soy/typeable/pandoc
on 1.3 help sign in
typeable/pandoc/tests/lhs-test.html+lhs
85 lines 2.7 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="Special"
42 >&gt; </span
43 ><span class="Function FunctionDefinition"
44 >unsplit ::</span
45 ><span class="Normal NormalText"
46 > (Arrow a) =&gt; (b -&gt; c -&gt; d) -&gt; a (b, c) d</span
47 ><br
48 /><span class="Special"
49 >&gt; </span
50 ><span class="Normal NormalText"
51 >unsplit = arr . </span
52 ><span class="Function"
53 >uncurry</span
54 ><span class="Normal NormalText"
55 > </span
56 ><br
57 /><span class="Special"
58 >&gt; </span
59 ><span class="Normal NormalText"
60 > </span
61 ><span class="Comment"
62 >-- arr (\op (x,y) -&gt; x `op` y) </span
63 ><br
64 /></code
65 ></pre
66 ><p
67 ><code
68 >(***)</code
69 > 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
70 ><pre
71 ><code
72 >f *** g = first f &gt;&gt;&gt; second g
73</code
74 ></pre
75 ><p
76 >Block quote:</p
77 ><blockquote
78 ><p
79 >foo bar</p
80 ></blockquote
81 ></div
82 ></body
83 ></html