module Simulation.Aivika.GPSS.Block.Advance
(advanceBlock) where
import Simulation.Aivika
import Simulation.Aivika.GPSS.Block
advanceBlock :: Process ()
-> Block a a
advanceBlock :: Process () -> Block a a
advanceBlock Process ()
p =
Block :: forall a b. (a -> Process b) -> Block a b
Block { blockProcess :: a -> Process a
blockProcess = \a
a -> Process ()
p Process () -> Process a -> Process a
forall (m :: * -> *) a b. Monad m => m a -> m b -> m b
>> a -> Process a
forall (m :: * -> *) a. Monad m => a -> m a
return a
a }