Is there already a list class?

Seth Kurtzberg seth at cql.com
Tue Jan 9 20:31:11 EST 2007


I've written some classes for this type of functionality as well.  I think what I've written can be generalized, so I'd like to participate if folks decide to pursue this.

Seth Kurtzberg

On Wed, 10 Jan 2007 11:23:20 +1000
"Matthew Brecknell" <haskell at brecknell.org> wrote:

> > Is here the right place to request a list class?
> > eg
> > class List l e where
> > 	(:) :: e -> l e -> l e
> > 	head :: ..
> > 
> > This might be used in Data.Set, Data.Map
> > 
> > class StorableAsList l e t where
> > 	fromList :: l e ->  t
> > 	toList :: t -> l e
> > 
> > I'd like to help implementing/ writing it.
> > 
> > Do you consider this beeing a useful enhancement?
> 
> I was looking for such a class just yesterday. I wanted a difference
> list over LazyByteString, and it seemed wrong just to rewrite Don
> Stewart's DList for byte strings without first having a list class.
> 
> I would also like to help implement it.
> 
> _______________________________________________
> Libraries mailing list
> Libraries at haskell.org
> http://www.haskell.org/mailman/listinfo/libraries
> 


More information about the Libraries mailing list