Skip to content

Commit cfd8711

Browse files
authored
Merge pull request #227 from purescript/more-0.14-updates
Fix warnings and doc-comments for 0.14
2 parents 85aa2db + 1b99c70 commit cfd8711

File tree

6 files changed

+9
-5
lines changed

6 files changed

+9
-5
lines changed

src/Control/Category.purs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import Control.Semigroupoid (class Semigroupoid, compose, (<<<), (>>>))
1313
-- | `Semigroupoid` law:
1414
-- |
1515
-- | - Identity: `identity <<< p = p <<< identity = p`
16+
class Category :: forall k. (k -> k -> Type) -> Constraint
1617
class Semigroupoid a <= Category a where
1718
identity :: forall t. a t t
1819

src/Control/Semigroupoid.purs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ module Control.Semigroupoid where
99
-- |
1010
-- | One example of a `Semigroupoid` is the function type constructor `(->)`,
1111
-- | with `(<<<)` defined as function composition.
12+
class Semigroupoid :: forall k. (k -> k -> Type) -> Constraint
1213
class Semigroupoid a where
1314
compose :: forall b c d. a c d -> a b c -> a b d
1415

src/Data/Monoid/Endo.purs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import Prelude
1111
-- | Endo f <> Endo g == Endo (f <<< g)
1212
-- | (mempty :: Endo _) == Endo identity
1313
-- | ```
14+
newtype Endo :: forall k. (k -> k -> Type) -> k -> Type
1415
newtype Endo c a = Endo (c a a)
1516

1617
derive newtype instance eqEndo :: Eq (c a a) => Eq (Endo c a)

src/Data/NaturalTransformation.purs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,18 @@ 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.
17+
type NaturalTransformation :: forall k. (k -> Type) -> (k -> Type) -> Type
1718
type NaturalTransformation f g = forall a. f a -> g a
1819

1920
infixr 4 type NaturalTransformation as ~>

src/Type/Data/Row.purs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module Type.Data.Row where
22

3-
-- | A proxy data type whose type parameter is a type of kind `# Type` (a row
3+
-- | A proxy data type whose type parameter is a type of kind `Row Type` (a row
44
-- | of types).
55
-- |
66
-- | Commonly used for specialising a function with a quantified type.

src/Type/Data/RowList.purs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module Type.Data.RowList where
22

3-
import Prim.RowList (kind RowList)
3+
import Prim.RowList (RowList)
44

55
-- | A proxy to carry information about a rowlist.
66
data RLProxy (rowlist :: RowList Type)

0 commit comments

Comments
 (0)