Commit 6af1c9b2 authored by Herbert Valerio Riedel's avatar Herbert Valerio Riedel 🕺

Add missing changelog/since entry for `uncons`

This is a follow-up commit to
e428b5b8 (refs D195 & #9550)
parent 4c359f5a
......@@ -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)
......
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment