Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down
5 changes: 0 additions & 5 deletions src/Data/Semigroup/Foldable.purs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ module Data.Semigroup.Foldable
, foldl1Default
, foldMap1DefaultR
, foldMap1DefaultL
, foldMap1Default
, intercalate
, intercalateMap
, maximum
Expand Down Expand Up @@ -81,10 +80,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
Expand Down