[Haskell-cafe] A typeclass for Data.Map etc?

2009-02-19 Thread Eugene Kirpichov
Greetings, Is there a typeclass for mappings with a Data.Map-like interface, with stuff like: empty, insert, insertWithKey, unionWith etc. ? And, probably, a similar typeclass for mutable mappings like Data.Hashtable. Looks like such a thing would be useful; as for now, I see at least two

Re: [Haskell-cafe] A typeclass for Data.Map etc?

2009-02-19 Thread Mark Wotton
On Thu, Feb 19, 2009 at 9:51 PM, Eugene Kirpichov ekirpic...@gmail.com wrote: Greetings, Is there a typeclass for mappings with a Data.Map-like interface, with stuff like: empty, insert, insertWithKey, unionWith etc. ? And, probably, a similar typeclass for mutable mappings like

Re: [Haskell-cafe] A typeclass for Data.Map etc?

2009-02-19 Thread Svein Ove Aas
On Thu, Feb 19, 2009 at 2:46 PM, Mark Wotton mwot...@gmail.com wrote: On Thu, Feb 19, 2009 at 9:51 PM, Eugene Kirpichov ekirpic...@gmail.com wrote: Greetings, Is there a typeclass for mappings with a Data.Map-like interface, with stuff like: empty, insert, insertWithKey, unionWith etc. ?

Re: [Haskell-cafe] A typeclass for Data.Map etc?

2009-02-19 Thread Peter Robinson
2009/2/19 Eugene Kirpichov ekirpic...@gmail.com: Is there a typeclass for mappings with a Data.Map-like interface, with stuff like: empty, insert, insertWithKey, unionWith etc. ? Maybe this is of interest: http://hackage.haskell.org/cgi-bin/hackage-scripts/package/gmap Peter

Re: [Haskell-cafe] A typeclass for Data.Map etc?

2009-02-19 Thread Jamie Brandon
Maybe this is of interest: http://hackage.haskell.org/cgi-bin/hackage-scripts/package/gmap The edison api is much more stable. The gmap api was already in place when I started working on it but I would prefer to at some point make it a superset of the edison api. No sense in having more than

Re: [Haskell-cafe] A typeclass for Data.Map etc?

2009-02-19 Thread John Meacham
On Thu, Feb 19, 2009 at 01:51:44PM +0300, Eugene Kirpichov wrote: Is there a typeclass for mappings with a Data.Map-like interface, with stuff like: empty, insert, insertWithKey, unionWith etc. ? And, probably, a similar typeclass for mutable mappings like Data.Hashtable. Here is one I wrote a

Re: [Haskell-cafe] A typeclass for Data.Map etc?

2009-02-19 Thread Alexander Dunlap
On Thu, Feb 19, 2009 at 10:18 AM, Jamie Brandon jamii...@googlemail.com wrote: Maybe this is of interest: http://hackage.haskell.org/cgi-bin/hackage-scripts/package/gmap The edison api is much more stable. The gmap api was already in place when I started working on it but I would prefer to at

Re: [Haskell-cafe] A typeclass for Data.Map etc?

2009-02-19 Thread wren ng thornton
Eugene Kirpichov wrote: Looks like such a thing would be useful; as for now, I see at least two applications: Data.Map and Data.Trie (bytestring-trie) - it's a pity that they have rather similar interfaces, but the latter lacks many methods and some are named in a different way. Are there any