Combining monads

Scott Turner p.turner@computer.org
Sat, 12 Apr 2003 09:14:45 -0500


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