Skip to content
This repository was archived by the owner on Oct 4, 2020. It is now read-only.

Commit 5ea5faf

Browse files
committed
Merge pull request #24 from jbrownson/master
Fix a typo in the name of the semigroup instance, rerun docs
2 parents 81dad21 + 1ca7c5d commit 5ea5faf

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

docs/Data/Set.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ instance eqSet :: (Eq a) => Eq (Set a)
1919
instance showSet :: (Show a) => Show (Set a)
2020
instance ordSet :: (Ord a) => Ord (Set a)
2121
instance monoidSet :: (Ord a) => Monoid (Set a)
22-
instance monoidSemigroup :: (Ord a) => Semigroup (Set a)
22+
instance semigroupSet :: (Ord a) => Semigroup (Set a)
23+
instance foldableSet :: Foldable Set
2324
```
2425

2526
#### `empty`
@@ -86,15 +87,15 @@ Delete a value from a set
8687
toList :: forall a. Set a -> List a
8788
```
8889

89-
Convert a set to an array
90+
Convert a set to a list
9091

9192
#### `fromList`
9293

9394
``` purescript
9495
fromList :: forall a. (Ord a) => List a -> Set a
9596
```
9697

97-
Create a set from an array of elements
98+
Create a set from a list of elements
9899

99100
#### `size`
100101

src/Data/Set.purs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ instance ordSet :: (Ord a) => Ord (Set a) where
4646
instance monoidSet :: (Ord a) => Monoid (Set a) where
4747
mempty = empty
4848

49-
instance monoidSemigroup :: (Ord a) => Semigroup (Set a) where
49+
instance semigroupSet :: (Ord a) => Semigroup (Set a) where
5050
append = union
5151

5252
instance foldableSet :: Foldable Set where

0 commit comments

Comments
 (0)