Skip to content

Commit 5ec1b0b

Browse files
committed
fix documentation
1 parent 83bb4bf commit 5ec1b0b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Data/NaturalTransformation.purs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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.
1717
type NaturalTransformation :: forall k. (k -> Type) -> (k -> Type) -> Type
1818
type NaturalTransformation f g = forall a. f a -> g a

0 commit comments

Comments
 (0)