You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This would improve consistency between bytestring and text and dovetail nicely in the efforts to eliminate Prelude.head / Prelude.tail, allowing to use Data.List.NonEmpty.head in more situations.
Let's follow the suite of
bytestring
, which providesinitsNE :: ByteString -> NonEmpty ByteString
andtailsNE :: ByteString -> NonEmpty ByteString
.This would improve consistency between
bytestring
andtext
and dovetail nicely in the efforts to eliminatePrelude.head
/Prelude.tail
, allowing to useData.List.NonEmpty.head
in more situations.For the reference, here is a relevant PR for
bytestring
: haskell/bytestring#557CC @kindaro.
The text was updated successfully, but these errors were encountered: