Combining monads

Mark Carroll mark@chaos.x-philes.com
Sat, 12 Apr 2003 12:53:06 -0400 (EDT)


On Sat, 12 Apr 2003, Scott Turner wrote:

> On Saturday 12 April 2003 09:52, Mark T.B. Carroll wrote:
> > Hello! I am trying and failing to use one monad in another.
> > Is there a minimal rewrite that will get this working ... ?
> Yes. Just add lift.
>      do count <- lift $ get_length name

Wow. Thanks. That's wonderful! Much food for thought there.

-- Mark