Skip to content

Commit 309b6f8

Browse files
committed
io-sim-por: improved haddocks of ScheduleMod
1 parent 420b040 commit 309b6f8

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

io-sim/src/Control/Monad/IOSim/Types.hs

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -868,12 +868,15 @@ data ScheduleControl = ControlDefault
868868
deriving (Eq, Ord, Show)
869869

870870
data ScheduleMod = ScheduleMod{
871-
scheduleModTarget :: StepId, -- when we reach this step
871+
-- | Step at which the 'ScheduleMod' is activated.
872+
scheduleModTarget :: StepId,
873+
-- | 'ScheduleControl' at the activation step. It is needed by
874+
-- 'extendScheduleControl' when combining the discovered schedule with the
875+
-- initial one.
872876
scheduleModControl :: ScheduleControl,
873-
-- which happens with this control
874-
scheduleModInsertion :: [StepId] -- we should instead perform this sequence
875-
-- this *includes* the target step,
876-
-- not necessarily as the last step.
877+
-- | Series of steps which are executed at the target step. This *includes*
878+
-- the target step, not necessarily as the last step.
879+
scheduleModInsertion :: [StepId]
877880
}
878881
deriving (Eq, Ord)
879882

0 commit comments

Comments
 (0)