Skip to content

Commit aceaea4

Browse files
committed
Refer to type constructors rather than types
1 parent 0c93f9e commit aceaea4

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ class (Functor f) <= Alt f where
99
(<|>) :: forall a. f a -> f a -> f a
1010
```
1111

12-
The `Alt` type class identifies an associative operation on a type.
13-
It is similar to `Semigroup`, except that it applies to types of
14-
kind `* -> *`, like `Array` or `List`, rather than concrete types like
12+
The `Alt` type class identifies an associative operation on a type
13+
constructor. It is similar to `Semigroup`, except that it applies to
14+
types of kind `* -> *`, like `Array` or `List`, rather than concrete types
1515
`String` or `Number`.
1616

1717
`Alt` instances are required to satisfy the following laws:
@@ -32,7 +32,7 @@ class (Applicative f, Plus f) <= Alternative f where
3232
```
3333

3434
The `Alternative` type class has no members of its own; it just specifies
35-
that the type has both `Applicative` and `Plus` instances.
35+
that the type constructor has both `Applicative` and `Plus` instances.
3636

3737
Types which have `Alternative` instances should also satisfy the following
3838
laws:

src/Control/Alt.purs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ module Control.Alt where
22

33
infixl 3 <|>
44

5-
-- | The `Alt` type class identifies an associative operation on a type.
6-
-- | It is similar to `Semigroup`, except that it applies to types of
7-
-- | kind `* -> *`, like `Array` or `List`, rather than concrete types like
5+
-- | The `Alt` type class identifies an associative operation on a type
6+
-- | constructor. It is similar to `Semigroup`, except that it applies to
7+
-- | types of kind `* -> *`, like `Array` or `List`, rather than concrete types
88
-- | `String` or `Number`.
99
-- |
1010
-- | `Alt` instances are required to satisfy the following laws:

src/Control/Alternative.purs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import Control.Lazy
55
import Control.Plus
66

77
-- | The `Alternative` type class has no members of its own; it just specifies
8-
-- | that the type has both `Applicative` and `Plus` instances.
8+
-- | that the type constructor has both `Applicative` and `Plus` instances.
99
-- |
1010
-- | Types which have `Alternative` instances should also satisfy the following
1111
-- | laws:

0 commit comments

Comments
 (0)