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.

_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to