[Haskell-cafe] newbie "concatenating" monad question
lpenz at terra.com.br
Sat Mar 24 15:09:13 EDT 2007
I'm new here and this is my first mail to the list, so be gentle :)
I have some functions that build big strings by calling other functions and
appending the result, like
func1 ++ func2 ++ func3 ++ func4
My idea is to have a monad with a concatenating >>, so that I can:
bulidStuff = do
I am thinking about using the writer monad, but I would still have to use
"tell". The list monad is not an option either, as it does not concatenate.
Is there a proper way of doing something like this (efficiently) ?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Haskell-Cafe