Skip to content

Commit f39fb21

Browse files
committed
io-sim: use ppSimResult in traceDebugLog
ppSimResult is now also exported from the `Control.Monad.IOSim` module.
1 parent 1b5f5cc commit f39fb21

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -639,9 +639,9 @@ exploreSimTraceST optsf main k =
639639
traceDebugLog :: Int -> SimTrace a -> ST s ()
640640
traceDebugLog logLevel _trace | logLevel <= 0 = pure ()
641641
traceDebugLog 1 trace = Debug.traceM $ "Simulation trace with discovered schedules:\n"
642-
++ Trace.ppTrace show (ppSimEvent 0 0 0) (ignoreRaces $ void `first` trace)
642+
++ Trace.ppTrace (ppSimResult 0 0 0) (ppSimEvent 0 0 0) (ignoreRaces $ void `first` trace)
643643
traceDebugLog _ trace = Debug.traceM $ "Simulation trace with discovered schedules:\n"
644-
++ Trace.ppTrace show (ppSimEvent 0 0 0) (void `first` trace)
644+
++ Trace.ppTrace (ppSimResult 0 0 0) (ppSimEvent 0 0 0) (void `first` trace)
645645

646646

647647
-- | Run a simulation using a given schedule. This is useful to reproduce

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ module Control.Monad.IOSim.Types
4949
, ppSimEventType
5050
, SimEvent (..)
5151
, SimResult (..)
52+
, ppSimResult
5253
, SimTrace
5354
, Trace.Trace (SimTrace, SimPORTrace, TraceMainReturn, TraceMainException, TraceDeadlock, TraceRacesFound, TraceLoop, TraceInternalError)
5455
, ppTrace

0 commit comments

Comments
 (0)