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

Revise definitions of Data.List.Base.scanl|inits; add Data.List.NonEmpty.Base.scanl⁺|inits⁺ #2269

Closed
wants to merge 10 commits into from

Conversation

jamesmckinna
Copy link
Contributor

@jamesmckinna jamesmckinna commented Jan 29, 2024

Fixes #2267 . See also the discussion on #2258 .

@jamesmckinna
Copy link
Contributor Author

Hmmm, looks as though I've screwed up the CHANGELOG.

@JacquesCarette
Copy link
Contributor

Yes, other than that, this looks really good!

@jamesmckinna
Copy link
Contributor Author

Hopefully that's sorted out now.

@jamesmckinna
Copy link
Contributor Author

So I think we've (now) agreed to find a better home for this (and #2258 ) under Data.List.Something. Suggestions welcome!

@jamesmckinna
Copy link
Contributor Author

Aaargh: Data.List.Kleene.*!

Copy link
Member

@andreasabel andreasabel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the improvements!

In general, some list operations always return non-empty lists, so this should be expressed in types; and then one can choose to forget the extra information of non-emptiness using a conversion to plain lists.

@jamesmckinna
Copy link
Contributor Author

Now see #2395

@jamesmckinna jamesmckinna deleted the scanl branch May 30, 2024 16:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

A 'better' (less strict) Data.List.Base.tails?
3 participants