Skip to content

add ordNub somewhere in containers #439

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

Closed
gbaz opened this issue Oct 5, 2017 · 6 comments · Fixed by #515
Closed

add ordNub somewhere in containers #439

gbaz opened this issue Oct 5, 2017 · 6 comments · Fixed by #515

Comments

@gbaz
Copy link
Contributor

gbaz commented Oct 5, 2017

After dropping the standard ordNub (i.e. this: https://github.com/nh2/haskell-ordnub) code into a codebase for the zillionth time I went and checked the history of why it never made it into a standard lib. It can't go into base because it requires containers or reimplementing Set just for this purpose, which is silly. It doesn't necessarily belong in the Data.Set module. But perhaps it could fall into a new module, like Data.SetUtils or Data.ContainerUtils or the like? Anyway, this package is the most natural place for it to live, even if it doesn't quite fit, and everyone ends up using it everywhere, so it would be really nice to just have a standard for it...

@treeowl
Copy link
Contributor

treeowl commented Oct 5, 2017 via email

@nh2
Copy link
Member

nh2 commented Oct 18, 2017

@gbaz
Copy link
Contributor Author

gbaz commented Dec 19, 2017

As I wrote there:

"The discussion period is well over and it seems the consensus is for
adding this, basically as David proposes. -- i.e. ordNub, and
ordNubOn, but not ordNubBy. (and also the -1 variants and the int-
variants). I think the only module name proposed to add them to is
Data.Containers.ListUtils, so I guess that stands.

David -- are you up for adding these, or would you like someone else
(i.e. me) to prepare a patch?"

@treeowl
Copy link
Contributor

treeowl commented Dec 19, 2017 via email

@treeowl
Copy link
Contributor

treeowl commented Jan 24, 2018

We'd better get to this.

@gbaz
Copy link
Contributor Author

gbaz commented Jan 25, 2018

See PR

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.

3 participants