[Haskell-cafe] Re: View patterns

Achim Schneider barsoap at web.de
Sat Feb 27 15:59:05 EST 2010

Andrew Coppin <andrewcoppin at btinternet.com> wrote:

> Ozgur Akgun wrote:
> > A humble suggestion: Have a *lazy* "to list" method for
> > your /lists, arrays, sets, etc./ and use the nice list-only version.
> Yeah, that works quite nicely.
> It won't work for arbitrarily complex structures, however. My main
> point was that if you make the constructors abstract and provide
> functions to query the structure, now you can't pattern match against
> it.

...I think the issue just has to be nailed down precisely, and then
someone has to volunteer implementing it.

(c) this sig last receiving data processing entity. Inspect headers
for copyright history. All rights reserved. Copying, hiring, renting,
performance and/or quoting of this signature prohibited.

More information about the Haskell-Cafe mailing list