
6 Mar
2017
6 Mar
'17
3:39 a.m.
On Sun, 5 Mar 2017, Vladislav Zavialov wrote:
Since 'Data.List.NonEmpty' is now in 'base', it makes sense to change the type of 'some' from
some :: Alternative f => f a -> f [a]
to
some :: Alternative f => f a -> f (NonEmpty a)
as it's guaranteed to return a non-empty list.
A less invasive way would be to add a new function with that type.