Closed nushio3 closed 12 years ago
If we use monoidness in addNodeE, then we need to put around too many Monoid contexts. Instead, I'll specify default annotation as a context.
Annotation will need to be a monoid in the future when we actually plan to create Builders that add Annotations.
I guess it does not need to be a monoid, you can just accept a function that modifies the annotation.
Let Annotation satisfy Monoid laws in such manner that only leftmost Set survive when they are mappended.