Re: [Haskell-cafe] How to abort a computation within Continuation Monad?

2007-11-22 Thread Derek Elkins
On Thu, 2007-11-22 at 01:01 -0500, Dimitry Golubovsky wrote: Hi, I finally was able to write a function which grabs the remainder of the computation in Cont monad and passes it to some function, in the same time forcing the whole computation to finish by returning a final value. I am not

Re: [Haskell-cafe] How to abort a computation within Continuation Monad?

2007-11-21 Thread Dimitry Golubovsky
Hi, I finally was able to write a function which grabs the remainder of the computation in Cont monad and passes it to some function, in the same time forcing the whole computation to finish by returning a final value. I am not sure what kind of wheel I have reinvented, but here it is:

[Haskell-cafe] How to abort a computation within Continuation Monad?

2007-11-19 Thread Dimitry Golubovsky
Hi, I have been using plain non-monadic CPS for a while in my web-browser related stuff. Now I am tempted to switch from plain CPS to syntactically sweetened monadic style based on Continuation Monad, but I feel stuck with one important issue that I need an advice on. In plain CPS, I may write:

Re: [Haskell-cafe] How to abort a computation within Continuation Monad?

2007-11-19 Thread Derek Elkins
On Tue, 2007-11-20 at 00:18 -0500, Dimitry Golubovsky wrote: Hi, I have been using plain non-monadic CPS for a while in my web-browser related stuff. Now I am tempted to switch from plain CPS to syntactically sweetened monadic style based on Continuation Monad, but I feel stuck with one