Skip to content

Commit 2001e8e

Browse files
committed
io-sim: enhanced TimeoutException Show instance
1 parent e6f7cb7 commit 2001e8e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -670,7 +670,7 @@ instance SI.MonadTimer (IOSim s) where
670670
newtype TimeoutException = TimeoutException TimeoutId deriving Eq
671671

672672
instance Show TimeoutException where
673-
show _ = "<<timeout>>"
673+
show (TimeoutException tid) = "<<timeout " ++ show tid ++ " >>"
674674

675675
instance Exception TimeoutException where
676676
toException = asyncExceptionToException

0 commit comments

Comments
 (0)