Writing for both State and StateT

Mark T.B. Carroll Mark.Carroll@Aetion.com
Tue, 22 Apr 2003 14:06:58 -0400 (EDT)


On Tue, 22 Apr 2003, Derek Elkins wrote:

> I had a similar problem, but that was because I needed to use the
> constructors.  MonadState has the methods you are using just write your code
> requiring MonadState as both State and StateT are instances.
>
> next_random_probability :: ( ..., MonadState g m) => m a
(snip)

Works perfectly, thanks very much! That must be the only combination I
didn't try. (-: No doubt it'll all be clearer when I better understand
what's going on!

-- Mark