| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Transformation.Shallow
Description
Type classes Functor, Foldable, and Traversable that correspond to the standard type classes of the same
name. The rank2classes package provides the equivalent set
of classes for natural transformations.
Synopsis
- class (Transformation t, Functor g) => Functor t g where
- class (Transformation t, Foldable g) => Foldable t g where
- class (Transformation t, Traversable g) => Traversable t g where
- fmap :: Functor t g => t -> g (Domain t) -> g (Codomain t)
Documentation
class (Transformation t, Functor g) => Functor t g where Source #
Like Functor except it takes a Transformation instead of a polymorphic function
class (Transformation t, Foldable g) => Foldable t g where Source #
Like Foldable except it takes a Transformation instead of a polymorphic function
class (Transformation t, Traversable g) => Traversable t g where Source #
Like Traversable except it takes a Transformation instead of a polymorphic function
Instances
| (Traversable t g, Traversable t h, Codomain t ~ Compose m f, Applicative m) => Traversable t (Product g h) Source # | |