git.iko.soy/typeable/pandoc
on 1.8 help sign in
typeable/pandoc/tests/lhs-test.nohl.html
39 lines 1.0 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 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5 <meta name="generator" content="pandoc" />
6 <title></title>
7</head>
8<body>
9<h1 id="lhs-test"
10>lhs test</h1
11><p
12><code
13 >unsplit</code
14 > is an arrow that takes a pair of values and combines them to return a single value:</p
15><pre class="sourceCode haskell"
16><code
17 >unsplit :: (Arrow a) =&gt; (b -&gt; c -&gt; d) -&gt; a (b, c) d
18unsplit = arr . uncurry
19 -- arr (\op (x,y) -&gt; x `op` y)
20</code
21 ></pre
22><p
23><code
24 >(***)</code
25 > 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
26><pre
27><code
28 >f *** g = first f &gt;&gt;&gt; second g
29</code
30 ></pre
31><p
32>Block quote:</p
33><blockquote
34><p
35 >foo bar</p
36 ></blockquote
38</body>
39</html>