Skip to content

Commit f855acd

Browse files
Fix warnings revealed by v0.14.1 PS release (#48)
* Fix warnings revealed by v0.14.1 PS release * Update changelog
1 parent e834498 commit f855acd

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ New features:
1111
Bugfixes:
1212

1313
Other improvements:
14+
- Fix warnings revealed by v0.14.1 PS release (#48 by @JordanMartinez)
1415

1516
## [v2.0.0](https://github.com/purescript/purescript-ordered-collections/releases/tag/v2.0.0) - 2021-02-26
1617

src/Data/Map/Internal.purs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ instance foldableWithIndexMap :: FoldableWithIndex k (Map k) where
125125
foldMapWithIndex f m = foldMap (uncurry f) $ asList $ toUnfoldable m
126126

127127
instance traversableMap :: Traversable (Map k) where
128-
traverse f Leaf = pure Leaf
128+
traverse _ Leaf = pure Leaf
129129
traverse f (Two left k v right) =
130130
Two <$> traverse f left
131131
<*> pure k
@@ -142,7 +142,7 @@ instance traversableMap :: Traversable (Map k) where
142142
sequence = traverse identity
143143

144144
instance traversableWithIndexMap :: TraversableWithIndex k (Map k) where
145-
traverseWithIndex f Leaf = pure Leaf
145+
traverseWithIndex _ Leaf = pure Leaf
146146
traverseWithIndex f (Two left k v right) =
147147
Two <$> traverseWithIndex f left
148148
<*> pure k

0 commit comments

Comments
 (0)