git.iko.soy/typeable/pandoc
on master help sign in
Test suite changes for new highlighting-kate version.
commitaf5705308a4e4271602e7d356fa8602489e31d0e authorJohn MacFarlane <fiddlosopher@gmail.com> dateTue 23 Jul 2013, 20:31 (13 years ago) parent7f15d88
3 files changed+3−3
tests/lhs-test.html+1−1 tests/lhs-test.html+lhs+1−1 tests/lhs-test.latex+1−1
tests/lhs-test.html+1−1
@@ -30,7 +30,7 @@ code > span.er { color: #ff0000; font-weight: bold; }
3030<h1>lhs test</h1>
3131<p><code>unsplit</code> is an arrow that takes a pair of values and combines them to return a single value:</p>
3232<pre class="sourceCode literate haskell"><code class="sourceCode haskell"><span class="ot">unsplit ::</span> (<span class="dt">Arrow</span> a) <span class="ot">=&gt;</span> (b <span class="ot">-&gt;</span> c <span class="ot">-&gt;</span> d) <span class="ot">-&gt;</span> a (b, c) d
33−unsplit <span class="fu">=</span> arr <span class="fu">.</span> <span class="fu">uncurry</span>
33+unsplit <span class="fu">=</span> arr <span class="fu">.</span> uncurry
3434 <span class="co">-- arr (\op (x,y) -&gt; x `op` y)</span></code></pre>
3535<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>
3636<pre><code>f *** g = first f &gt;&gt;&gt; second g</code></pre>
tests/lhs-test.html+lhs+1−1
@@ -30,7 +30,7 @@ code > span.er { color: #ff0000; font-weight: bold; }
3030<h1>lhs test</h1>
3131<p><code>unsplit</code> is an arrow that takes a pair of values and combines them to return a single value:</p>
3232<pre class="sourceCode literate literatehaskell"><code class="sourceCode literatehaskell"><span class="ot">&gt; unsplit ::</span> (<span class="dt">Arrow</span> a) <span class="ot">=&gt;</span> (b <span class="ot">-&gt;</span> c <span class="ot">-&gt;</span> d) <span class="ot">-&gt;</span> a (b, c) d
33−<span class="ot">&gt;</span> unsplit <span class="fu">=</span> arr <span class="fu">.</span> <span class="fu">uncurry</span>
33+<span class="ot">&gt;</span> unsplit <span class="fu">=</span> arr <span class="fu">.</span> uncurry
3434<span class="ot">&gt;</span> <span class="co">-- arr (\op (x,y) -&gt; x `op` y)</span></code></pre>
3535<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>
3636<pre><code>f *** g = first f &gt;&gt;&gt; second g</code></pre>
tests/lhs-test.latex+1−1
@@ -76,7 +76,7 @@ return a single value:
7676\begin{Shaded}
7777\begin{Highlighting}[]
7878\OtherTok{unsplit ::} \NormalTok{(}\DataTypeTok{Arrow} \NormalTok{a) }\OtherTok{=>} \NormalTok{(b }\OtherTok{->} \NormalTok{c }\OtherTok{->} \NormalTok{d) }\OtherTok{->} \NormalTok{a (b, c) d}
79−\NormalTok{unsplit }\FunctionTok{=} \NormalTok{arr }\FunctionTok{.} \FunctionTok{uncurry}
79+\NormalTok{unsplit }\FunctionTok{=} \NormalTok{arr }\FunctionTok{.} \NormalTok{uncurry}
8080 \CommentTok{-- arr (\textbackslash{}op (x,y) -> x `op` y)}
8181\end{Highlighting}
8282\end{Shaded}