Skip to content

Commit

Permalink
Add missing tryReadTBQueue implementations to MonadSTM instances
Browse files Browse the repository at this point in the history
`tryReadTBQueue` was added to the `MonadSTM type class in
77b111e.
  • Loading branch information
mrBliss authored and coot committed Feb 15, 2019
1 parent 96505f0 commit a53d3c0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions ouroboros-consensus/src/Ouroboros/Storage/FS/Sim/STM.hs
Expand Up @@ -111,6 +111,7 @@ instance (MonadFork (SimFS m) , MonadSTM m) => MonadSTM (SimFS m) where

newTBQueue = lift . newTBQueue
readTBQueue = lift . readTBQueue
tryReadTBQueue = lift . tryReadTBQueue
writeTBQueue q = lift . writeTBQueue q

simHasFS :: forall m. MonadSTM m => ErrorHandling FsError m -> HasFS (SimFS m)
Expand Down
Expand Up @@ -442,6 +442,7 @@ instance (MonadFork (SimErrorFS m) , MonadSTM m) => MonadSTM (SimErrorFS m) wher

newTBQueue = lift . newTBQueue
readTBQueue = lift . readTBQueue
tryReadTBQueue = lift . tryReadTBQueue
writeTBQueue q = lift . writeTBQueue q


Expand Down

0 comments on commit a53d3c0

Please sign in to comment.