Skip to content

Re-export product in Data.Traversable #138

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all 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 @@ -5,6 +5,7 @@ Notable changes to this project are documented in this file. The format is based
## [Unreleased]

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

New features:

Expand Down
8 changes: 5 additions & 3 deletions src/Data/Traversable.purs
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,18 @@ module Data.Traversable
, scanr
, mapAccumL
, mapAccumR
, module Data.Foldable
, module Data.Traversable.Accum
, module Exports
) where

import Prelude

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
import Data.Traversable.Accum (Accum) as Exports

import Control.Apply (lift2)
import Data.Const (Const(..))
import Data.Either (Either(..))
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_)
import Data.Foldable (class Foldable)
import Data.Functor.App (App(..))
import Data.Functor.Compose (Compose(..))
import Data.Functor.Coproduct (Coproduct(..), coproduct)
Expand Down