Skip to content

Commit ca367f4

Browse files
committed
io-sim: expose Timeout type
This should be exposed as part of the `newTimeout` API.
1 parent 13926ff commit ca367f4

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

io-sim/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
a racy `StepId`: `(RacyThreadId [1,2], 2)`, is now pretty printed as `Thread
2929
{1,2}.2`, a non racy step is printed as `Thread [1,2].2`.
3030
* Fixed trace of calls to the `deschedule` function.
31+
* Exposed `Timeout` type as part of the `newTimeout` API.
3132

3233
## 1.2.0.0
3334

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ module Control.Monad.IOSim
8484
, EventlogEvent (..)
8585
, EventlogMarker (..)
8686
-- * Low-level API
87+
, Timeout
8788
, newTimeout
8889
, readTimeout
8990
, cancelTimeout

io-sim/test/Test/Control/Monad/IOSimPOR.hs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77

88
{-# OPTIONS_GHC -Wno-unused-top-binds #-}
99
{-# OPTIONS_GHC -Wno-incomplete-uni-patterns #-}
10-
{-# OPTIONS_GHC -Wno-partial-type-signatures #-}
1110

1211
module Test.Control.Monad.IOSimPOR (tests) where
1312

@@ -296,7 +295,7 @@ interpret cmp r t (tlbl, Task steps) = async $ do
296295
AreEqual -> (==)
297296
AreNotEqual -> (/=)
298297
interpretStep :: [ThreadId (IOSim s)]
299-
-> TVar (IOSim s) (Maybe _) -- Timeout is not exported
298+
-> TVar (IOSim s) (Maybe (Timeout s))
300299
-> Step
301300
-> IOSim s ()
302301
interpretStep _ _ (WhenSet m n) = atomically $ do

0 commit comments

Comments
 (0)