This repository was archived by the owner on May 24, 2018. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +51
-0
lines changed
Expand file tree Collapse file tree 1 file changed +51
-0
lines changed Original file line number Diff line number Diff line change 1+ # Module Documentation
2+
3+ ## Module Control.Arrow
4+
5+ ### Type Classes
6+
7+ class (Category a) <= Arrow a where
8+ arr :: forall b c. (b -> c) -> a b c
9+ first :: forall b c d. a b c -> a (Tuple b d) (Tuple c d)
10+
11+ class ArrowPlus a where
12+ (<+>) :: forall b c. a b c -> a b c -> a b c
13+
14+ class ArrowZero a where
15+ azero :: forall b c. a b c
16+
17+
18+ ### Type Class Instances
19+
20+ instance arrowFunction :: Arrow Prim.Function
21+
22+
23+ ### Values
24+
25+ (&&&) :: forall a b b' c c'. (Arrow a) => a b c -> a b c' -> a b (Tuple c c')
26+
27+ (***) :: forall a b b' c c'. (Arrow a) => a b c -> a b' c' -> a (Tuple b b') (Tuple c c')
28+
29+ second :: forall a b c d. (Arrow a) => a b c -> a (Tuple d b) (Tuple d c)
30+
31+
32+ ## Module Control.Arrow.Kleisli
33+
34+ ### Types
35+
36+ data Kleisli m a b where
37+ Kleisli :: a -> m b -> Kleisli m a b
38+
39+
40+ ### Type Class Instances
41+
42+ instance arrowKleisli :: (Monad m) => Arrow (Kleisli m)
43+
44+ instance categoryKleisli :: (Monad m) => Category (Kleisli m)
45+
46+ instance semigroupoidKleisli :: (Monad m) => Semigroupoid (Kleisli m)
47+
48+
49+ ### Values
50+
51+ runKleisli :: forall m a b. Kleisli m a b -> a -> m b
You can’t perform that action at this time.
0 commit comments