Proposal: add Int indexing functions to Data.Set

Ivan Lazar Miljenovic ivan.miljenovic at
Fri Apr 29 06:16:10 CEST 2011

On 29 April 2011 14:08, Luis Casillas <luis at> wrote:
> 2. Concern that Int-based indexing breaks the set abstraction by exposing a specific ordering (Trac comment by Malcolm Wallace).  My assumption when I decided to submit this patch was that if it's OK for Data.Map to have these operations, then it should also be ok for Data.Set to have them.  But Malcolm's concern makes me wonder if some people will find the original Data.Map functions objectionable and dislike the idea of "spreading the infection" to Data.Set.

I think I agree with Malcolm here; the internals of Data.Set shouldn't
be revealed IMHO.

Ivan Lazar Miljenovic
Ivan.Miljenovic at

More information about the Libraries mailing list