Copyright | (C) 2018 Brian Mckenna |
---|---|
License | BSD-style (see the file LICENSE) |
Maintainer | Edward Kmett <ekmett@gmail.com> |
Stability | provisional |
Portability | portable |
Safe Haskell | None |
Language | Haskell2010 |
The Day convolution of two invariant functors is an invariant functor.
Synopsis
- data Day (f :: Type -> Type) (g :: Type -> Type) a = Day (f b) (g c) (b -> c -> a) (a -> (b, c))
- day :: f a -> g b -> Day f g (a, b)
- assoc :: forall (f :: Type -> Type) (g :: Type -> Type) (h :: Type -> Type) a. Day f (Day g h) a -> Day (Day f g) h a
- disassoc :: forall (f :: Type -> Type) (g :: Type -> Type) (h :: Type -> Type) a. Day (Day f g) h a -> Day f (Day g h) a
- swapped :: forall (f :: Type -> Type) (g :: Type -> Type) a. Day f g a -> Day g f a
- intro1 :: f a -> Day Identity f a
- intro2 :: f a -> Day f Identity a
- elim1 :: Invariant f => Day Identity f a -> f a
- elim2 :: Invariant f => Day f Identity a -> f a
- trans1 :: forall f g (h :: Type -> Type) a. (forall x. f x -> g x) -> Day f h a -> Day g h a
- trans2 :: forall g h (f :: Type -> Type) a. (forall x. g x -> h x) -> Day f g a -> Day f h a
- toContravariant :: forall (f :: Type -> Type) (g :: Type -> Type) a. Day f g a -> Day f g a
- toCovariant :: forall (f :: Type -> Type) (g :: Type -> Type) a. Day f g a -> Day f g a
Documentation
data Day (f :: Type -> Type) (g :: Type -> Type) a Source #
The Day convolution of two invariant functors.
Day (f b) (g c) (b -> c -> a) (a -> (b, c)) |
assoc :: forall (f :: Type -> Type) (g :: Type -> Type) (h :: Type -> Type) a. Day f (Day g h) a -> Day (Day f g) h a Source #
disassoc :: forall (f :: Type -> Type) (g :: Type -> Type) (h :: Type -> Type) a. Day (Day f g) h a -> Day f (Day g h) a Source #
trans1 :: forall f g (h :: Type -> Type) a. (forall x. f x -> g x) -> Day f h a -> Day g h a Source #
trans2 :: forall g h (f :: Type -> Type) a. (forall x. g x -> h x) -> Day f g a -> Day f h a Source #