-
Notifications
You must be signed in to change notification settings - Fork 18
Closed
Labels
approvedApproved by CLC voteApproved by CLC votebase-4.20Implemented in base-4.20 (GHC 9.10)Implemented in base-4.20 (GHC 9.10)
Description
Currently we have unzip :: Functor f => f (a, b) -> (f a, f b)
exported from Data.List.NonEmpty
. The implementation can remain the same, but I propose that the type should be restricted to unzip :: NonEmpty (a, b) -> (NonEmpty a, NonEmpty b)
for analogy with Data.List
as well as to avoid exporting overgeneralized functions from specific modules. Really, why should we be exporting something that works with any Functor
from Data.List.NonEmpty
?
googleson78, jappeace, Abastro, ocharles, szumixie and 1 more
Metadata
Metadata
Assignees
Labels
approvedApproved by CLC voteApproved by CLC votebase-4.20Implemented in base-4.20 (GHC 9.10)Implemented in base-4.20 (GHC 9.10)