[commit: ghc] master: Export scanl' from Data.OldList and Data.List (f60eeb4)
git at git.haskell.org
git at git.haskell.org
Fri Nov 21 04:43:56 UTC 2014
Repository : ssh://git@git.haskell.org/ghc
On branch : master
Link : http://ghc.haskell.org/trac/ghc/changeset/f60eeb41ab48e73ea49fba64a745ddc4a6b8c085/ghc
>---------------------------------------------------------------
commit f60eeb41ab48e73ea49fba64a745ddc4a6b8c085
Author: David Feuer <david.feuer at gmail.com>
Date: Thu Nov 20 22:38:57 2014 -0600
Export scanl' from Data.OldList and Data.List
Summary: Fixes #9368
Reviewers: nomeata, hvr, ekmett, austin
Reviewed By: ekmett, austin
Subscribers: thomie, carter
Differential Revision: https://phabricator.haskell.org/D498
GHC Trac Issues: #9368
>---------------------------------------------------------------
f60eeb41ab48e73ea49fba64a745ddc4a6b8c085
libraries/base/Data/List.hs | 1 +
libraries/base/Data/OldList.hs | 1 +
libraries/base/changelog.md | 3 +++
3 files changed, 5 insertions(+)
diff --git a/libraries/base/Data/List.hs b/libraries/base/Data/List.hs
index 4f99926..7919244 100644
--- a/libraries/base/Data/List.hs
+++ b/libraries/base/Data/List.hs
@@ -65,6 +65,7 @@ module Data.List
-- ** Scans
, scanl
+ , scanl'
, scanl1
, scanr
, scanr1
diff --git a/libraries/base/Data/OldList.hs b/libraries/base/Data/OldList.hs
index 551b8be..eb9f1cc 100644
--- a/libraries/base/Data/OldList.hs
+++ b/libraries/base/Data/OldList.hs
@@ -65,6 +65,7 @@ module Data.OldList
-- ** Scans
, scanl
+ , scanl'
, scanl1
, scanr
, scanr1
diff --git a/libraries/base/changelog.md b/libraries/base/changelog.md
index f6a5016..56bfc31 100644
--- a/libraries/base/changelog.md
+++ b/libraries/base/changelog.md
@@ -96,6 +96,9 @@
* New module `Data.Functor.Identity` (previously provided by `transformers`
package). (#9664)
+ * Add `scanl'`, a strictly accumulating version of `scanl`, to `Data.List`
+ and `Data.OldList`. (#9368)
+
## 4.7.0.1 *Jul 2014*
* Bundled with GHC 7.8.3
More information about the ghc-commits
mailing list