Skip to content

Commit 822e16f

Browse files
committed
Re-export product from Data.Traversable
1 parent d581caf commit 822e16f

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

CHANGELOG.md

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

77
Breaking changes:
8+
- `Data.Traversable` now re-exports `product` (was mistakenly removed in 5.0.0) (#138)
89

910
New features:
1011

src/Data/Traversable.purs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,18 @@ module Data.Traversable
66
, scanr
77
, mapAccumL
88
, mapAccumR
9-
, module Data.Foldable
10-
, module Data.Traversable.Accum
9+
, module Exports
1110
) where
1211

1312
import Prelude
1413

14+
import Data.Foldable (class Foldable, all, and, any, elem, find, fold, foldMap, foldMapDefaultL, foldMapDefaultR, foldl, foldlDefault, foldr, foldrDefault, for_, intercalate, maximum, maximumBy, minimum, minimumBy, notElem, oneOf, or, sequence_, sum, product, traverse_) as Exports
15+
import Data.Traversable.Accum (Accum) as Exports
16+
1517
import Control.Apply (lift2)
1618
import Data.Const (Const(..))
1719
import Data.Either (Either(..))
18-
import Data.Foldable (class Foldable, all, and, any, elem, find, fold, foldMap, foldMapDefaultL, foldMapDefaultR, foldl, foldlDefault, foldr, foldrDefault, for_, intercalate, maximum, maximumBy, minimum, minimumBy, notElem, oneOf, or, sequence_, sum, traverse_)
20+
import Data.Foldable (class Foldable)
1921
import Data.Functor.App (App(..))
2022
import Data.Functor.Compose (Compose(..))
2123
import Data.Functor.Coproduct (Coproduct(..), coproduct)

0 commit comments

Comments
 (0)