Proposal: add 'state' to the MonadState class
wren ng thornton
wren at freegeek.org
Tue Sep 27 08:05:59 CEST 2011
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
More information about the Libraries
mailing list