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