File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -3,16 +3,16 @@ module Data.NaturalTransformation where
33-- | A type for natural transformations.
44-- |
55-- | A natural transformation is a mapping between type constructors of kind
6- -- | `Type -> Type` where the mapping operation has no ability to manipulate the
7- -- | inner values.
6+ -- | `k -> Type`, for any kind `k`, where the mapping operation has no ability
7+ -- | to manipulate the inner values.
88-- |
99-- | An example of this is the `fromFoldable` function provided in
1010-- | `purescript-lists`, where some foldable structure containing values of
1111-- | type `a` is converted into a `List a`.
1212-- |
1313-- | The definition of a natural transformation in category theory states that
1414-- | `f` and `g` should be functors, but the `Functor` constraint is not
15- -- | enforced here; that the types are of kind `Type -> Type` is enough for our
15+ -- | enforced here; that the types are of kind `k -> Type` is enough for our
1616-- | purposes.
1717type NaturalTransformation :: forall k . (k -> Type ) -> (k -> Type ) -> Type
1818type NaturalTransformation f g = forall a . f a -> g a
You can’t perform that action at this time.
0 commit comments