module Simulation.Aivika.Trans.GPSS.Block.Priority
(priorityBlock) where
import Simulation.Aivika.Trans
import Simulation.Aivika.Trans.GPSS.Block
import Simulation.Aivika.Trans.GPSS.Transact
priorityBlock :: MonadDES m
=> Int
-> Block m (Transact m a) (Transact m a)
{-# INLINABLE priorityBlock #-}
priorityBlock :: forall (m :: * -> *) a.
MonadDES m =>
Int -> Block m (Transact m a) (Transact m a)
priorityBlock Int
priority =
Block { blockProcess :: Transact m a -> Process m (Transact m a)
blockProcess = \Transact m a
a -> forall (m :: * -> *) a.
MonadDES m =>
Transact m a -> Int -> Process m (Transact m a)
assignTransactPriority Transact m a
a Int
priority }