git.iko.soy/typeable/pandoc
on master help sign in
Fixed lhs-test.markdown for new wrapping.
9ff5600John MacFarlane
tests/lhs-test.markdown+11−8
@@ -1,18 +1,21 @@
1# lhs test
1# lhs test
2
2
3−`unsplit` is an arrow that takes a pair of values and combines them
3+`unsplit` is an arrow that takes a pair of values and combines them to return
4−to return a single value:
4+a single value:
5
5
6+~~~~ {.sourceCode .literate .haskell}
6− unsplit :: (Arrow a) => (b -> c -> d) -> a (b, c) d
7+unsplit :: (Arrow a) => (b -> c -> d) -> a (b, c) d
7− unsplit = arr . uncurry
8+unsplit = arr . uncurry
8− -- arr (\op (x,y) -> x `op` y)
9+ -- arr (\op (x,y) -> x `op` y)
10+~~~~
9
11
10−`(***)` combines two arrows into a new arrow by running the two
12+`(***)` combines two arrows into a new arrow by running the two arrows on a
11−arrows on a pair of values (one arrow on the first item of the pair
13+pair of values (one arrow on the first item of the pair and one arrow on the
12−and one arrow on the second item of the pair).
14+second item of the pair).
13
15
14 f *** g = first f >>> second g
16 f *** g = first f >>> second g
15
17
16Block quote:
18Block quote:
17
19
18> foo bar
20> foo bar
21+