[commit: ghc] master: Add missing changelog/since entry for `uncons` (6af1c9b)

git at git.haskell.org git at git.haskell.org
Thu Sep 4 10:44:51 UTC 2014


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/6af1c9b2709281520c2015349e4a15265c364962/ghc

>---------------------------------------------------------------

commit 6af1c9b2709281520c2015349e4a15265c364962
Author: Herbert Valerio Riedel <hvr at gnu.org>
Date:   Thu Sep 4 12:42:54 2014 +0200

    Add missing changelog/since entry for `uncons`
    
    This is a follow-up commit to
    e428b5b8cc1448dcff7d7cdcbeb738eb0bea102f (refs D195 & #9550)


>---------------------------------------------------------------

6af1c9b2709281520c2015349e4a15265c364962
 libraries/base/GHC/List.lhs | 2 ++
 libraries/base/changelog.md | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/libraries/base/GHC/List.lhs b/libraries/base/GHC/List.lhs
index 4fcb54a..bbaf39f 100644
--- a/libraries/base/GHC/List.lhs
+++ b/libraries/base/GHC/List.lhs
@@ -74,6 +74,8 @@ badHead = errorEmptyList "head"
 -- | Decompose a list into its head and tail. If the list is empty,
 -- returns 'Nothing'. If the list is non-empty, returns @'Just' (x, xs)@,
 -- where @x@ is the head of the list and @xs@ its tail.
+--
+-- /Since: 4.8.0.0/
 uncons                  :: [a] -> Maybe (a, [a])
 uncons []               = Nothing
 uncons (x:xs)           = Just (x, xs)
diff --git a/libraries/base/changelog.md b/libraries/base/changelog.md
index 97a8242..4b97c58 100644
--- a/libraries/base/changelog.md
+++ b/libraries/base/changelog.md
@@ -25,6 +25,8 @@
   * Add `countLeadingZeros` and `countTrailingZeros` methods to
     `Data.Bits.FiniteBits` class
 
+  * Add `Data.List.uncons` list destructor (#9550)
+
 ## 4.7.0.1  *Jul 2014*
 
   * Bundled with GHC 7.8.3



More information about the ghc-commits mailing list