11class Category arr => Arrow (arr : Set -> Set -> Set) where
12 arrow : (a -> b) -> arr a b
13 first : arr a b -> arr (a, c) (b, c)
14 second : arr a b -> arr (c, a) (c, b)
15 (***) : arr a b -> arr a' b' -> arr (a, a') (b, b')
16 (&&&) : arr a b -> arr a b' -> arr a (b, b')
18instance Arrow Homomorphism where
20 first (Homo f) = Homo $ \(a, b) => (f a, b)
21 second (Homo f) = Homo $ \(a, b) => (a, f b)
22 (Homo f) *** (Homo g) = Homo $ \(a, b) => (f a, g b)
23 (Homo f) &&& (Homo g) = Homo $ \a => (f a, g a)
25instance Monad m => Arrow (Kleislimorphism m) where
26 arrow f = Kleisli (return . f)
27 first (Kleisli f) = Kleisli $ \(a, b) => do x <- f a
30 second (Kleisli f) = Kleisli $ \(a, b) => do x <- f b
33 (Kleisli f) *** (Kleisli g) = Kleisli $ \(a, b) => do x <- f a
37 (Kleisli f) &&& (Kleisli g) = Kleisli $ \a => do x <- f a
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list