[GHC] #5162: Add Int index functions to Data.Set
GHC
cvs-ghc at haskell.org
Thu Apr 28 17:37:35 CEST 2011
#5162: Add Int index functions to Data.Set
--------------------------------+-------------------------------------------
Reporter: sacundim | Owner: sacundim
Type: feature request | Status: closed
Priority: normal | Milestone:
Component: libraries (other) | Version: 7.0.3
Resolution: wontfix | Keywords: Data.Set
Testcase: | Blockedby:
Difficulty: | Os: Unknown/Multiple
Blocking: | Architecture: Unknown/Multiple
Failure: None/Unknown |
--------------------------------+-------------------------------------------
Comment(by sacundim):
tibbe, thanks for your feedback.
To tell you the truth, all I did was get the source for Data.Map in
containers-0.4.0, copypaste the existing Data.Map functions to Data.Set,
and edit them to work—which mostly just involved editing type signatures
and removing the "value" element from the pattern matches and
constructors. So as far as I can tell, your objections also apply to the
0.4.0 version of Data.Map.
I've just installed darcs and gotten the containers repository, and this
has a different version of these Data.Map functions, presumably newer and
better. I'm in the process of recreating the patch based on that, and
that's what I will submit to the libraries list.
I will add that I have a very limited goal here: duplicate the Data.Map
implementations for Data.Set, and make the Set versions '''no worse'''
than the original Map versions. So to be frank, for my purposes, any
suggested improvements that also apply to Data.Map are beyond my scope
(and, sadly, most likely also beyond my Haskell skills at this point).
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5162#comment:6>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the Glasgow-haskell-bugs
mailing list