8673eb079b
* These were added by the RST reader and, for literate Haskell, by the Markdown and LaTeX readers. There is no point to this class, and it is not applied consistently by all readers. See #5047. * Reverse order of `literate` and `haskell` classes on code blocks when parsing literate Haskell. Better if `haskell` comes first.
21 lines
501 B
Markdown
21 lines
501 B
Markdown
lhs test
|
|
========
|
|
|
|
`unsplit` is an arrow that takes a pair of values and combines them to
|
|
return a single value:
|
|
|
|
``` {.haskell .literate}
|
|
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
|