Copyright | (c) Erich Gut |
---|---|
License | BSD3 |
Maintainer | zerich.gut@gmail.com |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
category of paths over morphisms.
Synopsis
- data Path m x y where
- toOp2Path :: Morphism m => Path m x y -> Path (Op2 m) y x
- fromOp2Path :: Morphism m => Path (Op2 m) x y -> Path m y x
- compose :: Category m => Path m x y -> m x y
- mPath :: Morphism m => m x y -> Path m x y
- reverse :: (Morphism m, Morphism f) => (forall u. Struct (ObjectClass m) u -> Struct (ObjectClass f) u) -> (forall u v. m u v -> f v u) -> Path m x y -> Path f y x
- pthFoldr :: (forall x y. m x y -> f x -> f y) -> f a -> Path m a b -> f b
- pthLength :: Path m x y -> N
Path
data Path m x y where Source #
paths over morphisms.
Instances
reverse :: (Morphism m, Morphism f) => (forall u. Struct (ObjectClass m) u -> Struct (ObjectClass f) u) -> (forall u v. m u v -> f v u) -> Path m x y -> Path f y x Source #
reversing a path given by the formal inverse function.