
27 Sep
2011
27 Sep
'11
2:05 a.m.
On 9/26/11 10:25 AM, Twan van Laarhoven wrote:
But this function makes sense for all MonadState instances. I therefore propose to either add it to the MonadState class: [...] or as a stand alone function like modify. I personally prefer to add it to the class, since that allows for a more efficient implementation. In particular:
I'm all for either of the two proposals. If there are efficiency or correctness reasons for wanting it in the class rather than externally defined, then of course that is preferable. -- Live well, ~wren