Skip to content

Commit d3b01d3

Browse files
Drop deprecated foldMap1Default (#147)
1 parent 2206797 commit d3b01d3

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ Notable changes to this project are documented in this file. The format is based
66

77
Breaking changes:
88
- Migrate FFI to ES modules (#146 by @kl0tl and @JordanMartinez)
9+
- Drop deprecated `foldMap1Default` (#147 by @JordanMartinez)
910

1011
New features:
1112

src/Data/Semigroup/Foldable.purs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ module Data.Semigroup.Foldable
1111
, foldl1Default
1212
, foldMap1DefaultR
1313
, foldMap1DefaultL
14-
, foldMap1Default
1514
, intercalate
1615
, intercalateMap
1716
, maximum
@@ -30,7 +29,6 @@ import Data.Newtype (ala, alaF)
3029
import Data.Ord.Max (Max(..))
3130
import Data.Ord.Min (Min(..))
3231
import Data.Tuple (Tuple(..))
33-
import Prim.TypeError (class Warn, Text)
3432

3533
-- | `Foldable1` represents data structures with a minimum of one element that can be _folded_.
3634
-- |
@@ -81,10 +79,6 @@ foldMap1DefaultR f = map f >>> foldr1 (<>)
8179
foldMap1DefaultL :: forall t m a. Foldable1 t => Functor t => Semigroup m => (a -> m) -> t a -> m
8280
foldMap1DefaultL f = map f >>> foldl1 (<>)
8381

84-
-- | Deprecated previous name of `foldMap1DefaultL`.
85-
foldMap1Default :: forall t m a. Warn (Text "'foldMap1Default' is deprecated, use 'foldMap1DefaultL' instead") => Foldable1 t => Functor t => Semigroup m => (a -> m) -> t a -> m
86-
foldMap1Default = foldMap1DefaultL
87-
8882
instance foldableDual :: Foldable1 Dual where
8983
foldr1 _ (Dual x) = x
9084
foldl1 _ (Dual x) = x

0 commit comments

Comments
 (0)