>  http://www.cs.ox.ac.uk/jeremy.gibbons/publications/iterator.pdf

Interesting. However I don't understand why the instance in Section
5.5 is not already forbidden by the "purity law"

    traverse pure = pure

and a "'no duplication' constraint" would be necessary. For example:

    traverse Id [1,2,3] = Id [1,1,2,2,3,3] /= Id [1,2,3]

What am I missing?

Can we derive Foldable laws from the Traversable laws?

Sebastian

_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to