From 90647a56f6a742e7ecc1cec44042e256ff94b802 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Fri, 4 Feb 2011 20:37:58 -0800 Subject: Updated tests for new HTML format. Verified against old tests using tidy and diff. --- tests/lhs-test.html | 65 +++++++++++++---------------------------------------- 1 file changed, 15 insertions(+), 50 deletions(-) (limited to 'tests/lhs-test.html') diff --git a/tests/lhs-test.html b/tests/lhs-test.html index 0e5587a83..f7c9819b2 100644 --- a/tests/lhs-test.html +++ b/tests/lhs-test.html @@ -25,55 +25,20 @@ code.sourceCode span.er { color: red; font-weight: bold; } -

lhs test

unsplit is an arrow that takes a pair of values and combines them to return a single value:

unsplit :: (Arrow a) => (b -> c -> d) -> a (b, c) d
unsplit = arr . uncurry
-- arr (\op (x,y) -> x `op` y)

(***) 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).

f *** g = first f >>> second g
-

Block quote:

foo bar

+

lhs test

+ +

unsplit is an arrow that takes a pair of values and combines them to return a single value:

+ +
unsplit :: (Arrow a) => (b -> c -> d) -> a (b, c) d
unsplit = arr . uncurry
-- arr (\op (x,y) -> x `op` y)
+ +

(***) 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).

+ +
f *** g = first f >>> second g
+
+ +

Block quote:

+ +
+

foo bar

-- cgit v1.2.3