File tree Expand file tree Collapse file tree 2 files changed +1
-6
lines changed Expand file tree Collapse file tree 2 files changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ Notable changes to this project are documented in this file. The format is based
6
6
7
7
Breaking changes:
8
8
- Migrate FFI to ES modules (#146 by @kl0tl and @JordanMartinez )
9
+ - Drop deprecated ` foldMap1Default ` (#147 by @JordanMartinez )
9
10
10
11
New features:
11
12
Original file line number Diff line number Diff line change @@ -11,7 +11,6 @@ module Data.Semigroup.Foldable
11
11
, foldl1Default
12
12
, foldMap1DefaultR
13
13
, foldMap1DefaultL
14
- , foldMap1Default
15
14
, intercalate
16
15
, intercalateMap
17
16
, maximum
@@ -30,7 +29,6 @@ import Data.Newtype (ala, alaF)
30
29
import Data.Ord.Max (Max (..))
31
30
import Data.Ord.Min (Min (..))
32
31
import Data.Tuple (Tuple (..))
33
- import Prim.TypeError (class Warn , Text )
34
32
35
33
-- | `Foldable1` represents data structures with a minimum of one element that can be _folded_.
36
34
-- |
@@ -81,10 +79,6 @@ foldMap1DefaultR f = map f >>> foldr1 (<>)
81
79
foldMap1DefaultL :: forall t m a . Foldable1 t => Functor t => Semigroup m => (a -> m ) -> t a -> m
82
80
foldMap1DefaultL f = map f >>> foldl1 (<>)
83
81
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
-
88
82
instance foldableDual :: Foldable1 Dual where
89
83
foldr1 _ (Dual x) = x
90
84
foldl1 _ (Dual x) = x
You can’t perform that action at this time.
0 commit comments