[Haskell-beginners] How do I perform things inside a Monad?
daniel.trstenjak at gmail.com
Fri Feb 8 12:01:04 CET 2013
On Fri, Feb 08, 2013 at 07:18:38AM +0100, Martin Drautzburg wrote:
> The thing is, I tried to split this monster up into several functions. For
> this, my functions got quite a number of parameters. Passing bar baz to the
> toplevel function would add even more parameters.
You might use the where clause:
foo bar baz = withFoo doFoo
doFoo foo = do
doOtherThing thing = do
something bar baz
More information about the Beginners