String != [Char]

Gabriel Dos Reis gdr at
Mon Mar 26 19:36:52 CEST 2012

On Mon, Mar 26, 2012 at 11:42 AM, Christian Siefkes
<christian at> wrote:

> Also, that example is not really an argument against using list functions on
> strings (which, by any reasonable definition, seem to be "sequences of
> characters" -- whether that sequence is represented as a list, an array, or
> something else, seems more like an implementation detail to me).

The correctness problems isn't that a list is used to represent a sequence.
The problem is that that representational detail (and I agree with you
it is an implementation of sequence) is made part of the API on strings.

-- Gaby

More information about the Haskell-prime mailing list