[Haskell-cafe] a beginner question: decorate-op-undecorate

Stephen Tetley stephen.tetley at gmail.com
Sat Feb 6 08:18:10 EST 2010

Hi John

I'm not sure about making Binding polymorphic to get Functor,
Traversable, Foldable...

While I think you're correct that partitionEithers might not be a
useful example to draw from in this case, I'd assume that Binding
would be part of a larger syntax-tree, thus there might not be a
appropriate single leaf to make the tree polymorphic on. Felipe
Lessa's point - to use Uniplate or one of the Generics packages -
might be a better candidate for implementing traversals.

Best wishes


More information about the Haskell-Cafe mailing list