diff --git a/CHANGELOG.md b/CHANGELOG.md index 69c5c147..fc021364 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ New features: Bugfixes: Other improvements: +- Fix warnings revealed by `v0.14.1` PS release (#213) ## [v6.0.0](https://github.com/purescript/purescript-arrays/releases/tag/v6.0.0) - 2021-02-26 diff --git a/src/Data/Array.purs b/src/Data/Array.purs index e90d8c02..b7d2cf82 100644 --- a/src/Data/Array.purs +++ b/src/Data/Array.purs @@ -1052,7 +1052,7 @@ nubBy comp xs = case head indexedAndSorted of Just x -> map snd $ sortWith fst $ ST.run do -- TODO: use NonEmptyArrays here to avoid partial functions result <- STA.unsafeThaw $ singleton x - ST.foreach indexedAndSorted \pair@(Tuple i x') -> do + ST.foreach indexedAndSorted \pair@(Tuple _ x') -> do lst <- snd <<< unsafePartial (fromJust <<< last) <$> STA.unsafeFreeze result when (comp lst x' /= EQ) $ void $ STA.push pair result STA.unsafeFreeze result