[GHC] #13478: Data.List.NonEmpty.{unfold,unfoldr} differences
GHC
ghc-devs at haskell.org
Tue Apr 4 19:29:56 UTC 2017
#13478: Data.List.NonEmpty.{unfold,unfoldr} differences
-------------------------------------+-------------------------------------
Reporter: Iceland_jack | Owner: (none)
Type: feature request | Status: new
Priority: normal | Milestone:
Component: libraries/base | Version: 8.0.1
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture:
| Unknown/Multiple
Type of failure: None/Unknown | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s):
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by ekmett):
We can drop one of them. The `Data.List.NonEmpty` API was originally made
by consolidating 2-3 different APIs from different authors to get a common
API we could agree on. I apparently missed de-duplicating this corner of
it. It probably should be `unfoldr` in name. I have no preference between
the two implementations though.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/13478#comment:2>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list