Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add initsNE, tailsNE :: Text -> NonEmpty Text #557

Closed
Bodigrim opened this issue Feb 1, 2024 · 1 comment · Fixed by #558
Closed

Add initsNE, tailsNE :: Text -> NonEmpty Text #557

Bodigrim opened this issue Feb 1, 2024 · 1 comment · Fixed by #558

Comments

@Bodigrim
Copy link
Contributor

Bodigrim commented Feb 1, 2024

Let's follow the suite of bytestring, which provides initsNE :: ByteString -> NonEmpty ByteString and tailsNE :: ByteString -> NonEmpty ByteString.

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.

For the reference, here is a relevant PR for bytestring: haskell/bytestring#557

CC @kindaro.

@kindaro
Copy link
Contributor

kindaro commented Feb 2, 2024

On it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants