From 21bd73ddafd4c528ccfdc85cddc0f4096e53576f Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Fri, 4 Mar 2011 11:11:01 -0800 Subject: Fixed lhs-test.nohl tests. A previous commit accidentally overwrote them with highlighted tests. --- tests/lhs-test.nohl.html | 24 ++++-------------------- tests/lhs-test.nohl.html+lhs | 24 ++++-------------------- 2 files changed, 8 insertions(+), 40 deletions(-) (limited to 'tests') diff --git a/tests/lhs-test.nohl.html b/tests/lhs-test.nohl.html index d1ea1f128..cd5c0ac05 100644 --- a/tests/lhs-test.nohl.html +++ b/tests/lhs-test.nohl.html @@ -4,30 +4,14 @@ -

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)
+
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
 
diff --git a/tests/lhs-test.nohl.html+lhs b/tests/lhs-test.nohl.html+lhs index 269974eb4..15c21f3be 100644 --- a/tests/lhs-test.nohl.html+lhs +++ b/tests/lhs-test.nohl.html+lhs @@ -4,30 +4,14 @@ -

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)
+
> 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
 
-- cgit v1.2.3