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
3
3
-- | A type for natural transformations.
4
4
-- |
5
5
-- | 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.
8
8
-- |
9
9
-- | An example of this is the `fromFoldable` function provided in
10
10
-- | `purescript-lists`, where some foldable structure containing values of
11
11
-- | type `a` is converted into a `List a`.
12
12
-- |
13
13
-- | The definition of a natural transformation in category theory states that
14
14
-- | `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
16
16
-- | purposes.
17
17
type NaturalTransformation :: forall k . (k -> Type ) -> (k -> Type ) -> Type
18
18
type NaturalTransformation f g = forall a . f a -> g a
You can’t perform that action at this time.
0 commit comments