Skip to content

Commit

Permalink
io-sim: fixed a link in haddocks to STM
Browse files Browse the repository at this point in the history
  • Loading branch information
coot authored and bolt12 committed Oct 18, 2024
1 parent f5d40d9 commit 13fa0cf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion io-sim/src/Control/Monad/IOSim/STM.hs
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ unGetTBQueueDefault (TBQueue queue _size) a = do
--
-- /Implementation details:/
--
-- 'STM' does not guarantee fairness, instead it provide compositionally.
-- @STM@ does not guarantee fairness, instead it provides compositionally.
-- Fairness of 'putMVarDefault' and 'takeMVarDefault' is provided by tracking
-- queue of blocked operation in the 'MVarState', e.g. when a 'putMVarDefault'
-- is scheduled on a full 'MVar', the request is put on to the back of the queue
Expand Down
4 changes: 2 additions & 2 deletions io-sim/src/Control/Monad/IOSim/Types.hs
Original file line number Diff line number Diff line change
Expand Up @@ -236,8 +236,8 @@ data StmA s a where
LiftSTStm :: StrictST.ST s a -> (a -> StmA s b) -> StmA s b
FixStm :: (x -> STM s x) -> (x -> StmA s r) -> StmA s r

-- | `IOSim`'s 'MonadSTM.STM' monad, as 'IOSim' it is parametrised by @s@, e.g.
-- @STMSim s a@ is monadic expression of type @a@.
-- | `IOSim`'s 'Control.Monad.Class.MonadSTM.Internal.STM' monad, as 'IOSim' it
-- is parametrised by @s@, e.g. @STMSim s a@ is monadic expression of type @a@.
--
type STMSim = STM

Expand Down

0 comments on commit 13fa0cf

Please sign in to comment.