[Haskell-cafe] Re: Practical Haskell question.
Henning Thielemann
lemming at henning-thielemann.de
Mon Jun 25 07:08:11 EDT 2007
On Mon, 25 Jun 2007, apfelmus wrote:
> Michael T. Richter wrote:
> > It looked to me like there were people arguing about whether the "x"
> > returned from one action was going to be used in the next action.
> >
> > Let me try and rephrase the question. :)
> >
> > [rephrase]
>
> Yes, and that's an important constellation your problem description does
> not consider.
If Michael had asked for code that has to be executed _after_ the actual
actions, say for cleanup, this would have been simple. If he knows that
the performAction commands don't use results of former actions, then the
Applicative approach described earlier in this thread would work, though
without 'do' notation.
More information about the Haskell-Cafe
mailing list