Hi,Marcelo,
import Control.Workflow import Control.Concurrent(threadDelay) import System.IO (hFlush,stdout) mcount n= dostep
$ do putStr (show n ++ " ") hFlush stdout threadDelay 1000000 mcount (n+1) return () -- to disambiguate the return type main=exec1
"count" $ mcount (0 :: Int)
>>>
runghc demos\sequence.hs >0 1 2 3 >CTRL-C Pressed>>>
runghc demos\sequence.hs >3 4 5 6 7 >CTRL-C Pressed>>>
runghc demos\sequence.hs >7 8 9 10 11 ...
syncWrite
) (writing is cached).Hi,
Is Control.Workflow similar with acid-state with respect to the way
On Sun, Sep 30, 2012 at 4:22 AM, Alberto G. Corona <agocorona@gmail.com> wrote:
> It´´s a very iteresting concept.
>
> The Workflow Monad transformer [1], in Control.Workflow perform
> logging and recovery of application istate from the log created.
> It has no implementation of roll-back or limited recovery upto a
> point, but this is easy to implement.
you recovery the current state?
Can you "somehow" recover impure (IO) computations?
> It also has many inspection and synchronization primitives. It has
> been used also for translating the log of a program and recovering the
> state in another machine. The log can be pretty-printed for
> debugging.
> [1] http://hackage.haskell.org/package/Workflow
Regards,
Marcelo
> 2012/9/30 KC <kc1956@gmail.com>:
>> http://martinfowler.com/eaaDev/EventSourcing.html
>>
>> http://martinfowler.com/articles/lmax.html
>>
>>
>> --
>> --
>> Regards,
>> KC
>>
>> _______________________________________________
>> Haskell-Cafe mailing list
>> Haskell-Cafe@haskell.org
>> http://www.haskell.org/mailman/listinfo/haskell-cafe
>
>
>
> --
> Alberto.
>
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe@haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe