diff --git a/CHANGELOG.md b/CHANGELOG.md index cbf4c56..d031c01 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ Notable changes to this project are documented in this file. The format is based Breaking changes: - Migrate FFI to ES modules (#146 by @kl0tl and @JordanMartinez) +- Drop deprecated `foldMap1Default` (#147 by @JordanMartinez) New features: diff --git a/src/Data/Semigroup/Foldable.purs b/src/Data/Semigroup/Foldable.purs index a8d8eb6..a7fdf36 100644 --- a/src/Data/Semigroup/Foldable.purs +++ b/src/Data/Semigroup/Foldable.purs @@ -11,7 +11,6 @@ module Data.Semigroup.Foldable , foldl1Default , foldMap1DefaultR , foldMap1DefaultL - , foldMap1Default , intercalate , intercalateMap , maximum @@ -30,7 +29,6 @@ import Data.Newtype (ala, alaF) import Data.Ord.Max (Max(..)) import Data.Ord.Min (Min(..)) import Data.Tuple (Tuple(..)) -import Prim.TypeError (class Warn, Text) -- | `Foldable1` represents data structures with a minimum of one element that can be _folded_. -- | @@ -81,10 +79,6 @@ foldMap1DefaultR f = map f >>> foldr1 (<>) foldMap1DefaultL :: forall t m a. Foldable1 t => Functor t => Semigroup m => (a -> m) -> t a -> m foldMap1DefaultL f = map f >>> foldl1 (<>) --- | Deprecated previous name of `foldMap1DefaultL`. -foldMap1Default :: forall t m a. Warn (Text "'foldMap1Default' is deprecated, use 'foldMap1DefaultL' instead") => Foldable1 t => Functor t => Semigroup m => (a -> m) -> t a -> m -foldMap1Default = foldMap1DefaultL - instance foldableDual :: Foldable1 Dual where foldr1 _ (Dual x) = x foldl1 _ (Dual x) = x