Skip to content

Commit

Permalink
io-sim: improved TimeoutException Show instance
Browse files Browse the repository at this point in the history
  • Loading branch information
coot committed Apr 13, 2023
1 parent 89b762f commit a1656ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion io-sim/src/Control/Monad/IOSim/Types.hs
Original file line number Diff line number Diff line change
Expand Up @@ -607,7 +607,7 @@ unregisterTimeout tmid = IOSim $ oneShot $ \k -> UnregisterTimeout tmid (k ())
newtype TimeoutException = TimeoutException TimeoutId deriving Eq

instance Show TimeoutException where
show _ = "<<timeout>>"
show (TimeoutException tmid) = "<<timeout " ++ show tmid ++ " >>"

instance Exception TimeoutException where
toException = asyncExceptionToException
Expand Down

0 comments on commit a1656ff

Please sign in to comment.