[Haskell-cafe] newbie "concatenating" monad question

Bryan O'Sullivan bos at serpentine.com
Sat Mar 24 15:35:38 EDT 2007


Leandro Penz wrote:

> My idea is to have a monad with a concatenating >>, so that I can:
> 
> bulidStuff = do
>   func1
>   func2
>   func3
>   func4

You could do this, but it's easier to take advantage of the fact that [] 
is an instance of MonadPlus, and just use `mplus`.

	<b


More information about the Haskell-Cafe mailing list