[Haskell-cafe] Motion to unify all the string data types

Tobias Brandt tob.brandt at googlemail.com
Sat Nov 10 17:38:18 CET 2012

On 10 November 2012 04:00, Johan Tibell <johan.tibell at gmail.com> wrote:

> As for type classes, I don't think we use them enough. Perhaps because
> Haskell wasn't developed as an engineering language, some good software
> engineering principles (code against an interface, not a concrete
> implementation) aren't used in out base libraries. One specific example is
> the lack of a sequence abstraction/type class, that all the string, list,
> and vector types could implement. Right now all these types try to
> implement a compatible interface (i.e. the traditional list interface),
> without a language mechanism to express that this is what they do.

(among others) a Sequence type class and provides instances for the base
data types in a separate package.
However, it appears that not many people are using it.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20121110/95926968/attachment.htm>

More information about the Haskell-Cafe mailing list