Commit ce9b6170 authored by Ben Gamari's avatar Ben Gamari Committed by Ben Gamari

base: Mark unfold as deprecated

Test Plan: Read it

Reviewers: austin, hvr, RyanGlScott

Reviewed By: RyanGlScott

Subscribers: rwbarton, thomie, ekmett

Differential Revision: https://phabricator.haskell.org/D3422
parent 486b8db0
......@@ -180,6 +180,8 @@ unfold :: (a -> (b, Maybe a)) -> a -> NonEmpty b
unfold f a = case f a of
(b, Nothing) -> b :| []
(b, Just c) -> b <| unfold f c
{-# DEPRECATED unfold "Use unfoldr" #-}
-- Deprecated in 8.2.1, remove in 8.4
-- | 'nonEmpty' efficiently turns a normal list into a 'NonEmpty' stream,
-- producing 'Nothing' if the input is empty.
......
......@@ -89,6 +89,9 @@
* `mkTyCon3` is no longer exported by `Data.Typeable`. This function is
replaced by `Type.Reflection.Unsafe.mkTyCon`.
* `Data.List.NonEmpty.unfold` has been deprecated in favor of `unfoldr`,
which is functionally equivalent.
## 4.9.0.0 *May 2016*
* Bundled with GHC 8.0
......
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