Skip to content

Commit db8a525

Browse files
committed
io-sim: make traceM strict
1 parent 2f28b89 commit db8a525

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{-# LANGUAGE BangPatterns #-}
12
{-# LANGUAGE CPP #-}
23
{-# LANGUAGE DeriveFunctor #-}
34
{-# LANGUAGE DeriveGeneric #-}
@@ -147,7 +148,7 @@ runIOSim (IOSim k) = k Return
147148
-- `selectTraceEventsDynamic'`.
148149
--
149150
traceM :: Typeable a => a -> IOSim s ()
150-
traceM x = IOSim $ oneShot $ \k -> Output (toDyn x) (k ())
151+
traceM !x = IOSim $ oneShot $ \k -> Output (toDyn x) (k ())
151152

152153
-- | Trace a value, in the same was as `traceM` does, but from the `STM` monad.
153154
-- This is primarily useful for debugging.

0 commit comments

Comments
 (0)