Skip to content

Commit a9aa0b4

Browse files
committed
io-sim: enhanced TimeoutException Show instance
1 parent d511d5d commit a9aa0b4

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
@@ -664,7 +664,7 @@ instance SI.MonadTimer (IOSim s) where
664664
newtype TimeoutException = TimeoutException TimeoutId deriving Eq
665665

666666
instance Show TimeoutException where
667-
show _ = "<<timeout>>"
667+
show (TimeoutException tid) = "<<timeout " ++ show tid ++ " >>"
668668

669669
instance Exception TimeoutException where
670670
toException = asyncExceptionToException

0 commit comments

Comments
 (0)