Re: [Haskell-cafe] container-classes (was: Restricted type classes)

2010-09-06 Thread John Lato
I'd like to make one more argument in favor of my preference for more splitting of type classes. IMO it's beneficial to split up classes to minimize unnecessary dependencies. That is, while e.g. Monoid is very useful for containers, many container methods won't need it, e.g. elem or filter.

Re: [Haskell-cafe] container-classes (was: Restricted type classes)

2010-09-06 Thread Ivan Lazar Miljenovic
On 7 September 2010 02:53, John Lato jwl...@gmail.com wrote: I'd like to make one more argument in favor of my preference for more splitting of type classes.  IMO it's beneficial to split up classes to minimize unnecessary dependencies.  That is, while e.g. Monoid is very useful for

Re: [Haskell-cafe] container-classes (was: Restricted type classes)

2010-09-06 Thread wren ng thornton
On 9/6/10 12:53 PM, John Lato wrote: I'd like to make one more argument in favor of my preference for more splitting of type classes. FWIW, I agree that more splitting is generally good. This is one of the problems I have with the various proposals for a ListLike class. They conflate the