Skip to content

Commit

Permalink
Rename StrictMVar module to StrictSVar.
Browse files Browse the repository at this point in the history
  • Loading branch information
jorisdral committed Jun 2, 2023
1 parent 08d3402 commit d34361d
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion ouroboros-consensus/ouroboros-consensus.cabal
Expand Up @@ -243,7 +243,7 @@ library
Ouroboros.Consensus.Util.IOLike
Ouroboros.Consensus.Util.MonadSTM.NormalForm
Ouroboros.Consensus.Util.MonadSTM.RAWLock
Ouroboros.Consensus.Util.MonadSTM.StrictMVar
Ouroboros.Consensus.Util.MonadSTM.StrictSVar
Ouroboros.Consensus.Util.Orphans
Ouroboros.Consensus.Util.RedundantConstraints
Ouroboros.Consensus.Util.ResourceRegistry
Expand Down
Expand Up @@ -74,7 +74,7 @@ import Ouroboros.Consensus.Storage.ImmutableDB.Impl.Util
import Ouroboros.Consensus.Util (takeUntil, whenJust)
import Ouroboros.Consensus.Util.CallStack
import Ouroboros.Consensus.Util.IOLike
import qualified Ouroboros.Consensus.Util.MonadSTM.StrictMVar as Strict
import qualified Ouroboros.Consensus.Util.MonadSTM.StrictSVar as Strict
import Ouroboros.Consensus.Util.ResourceRegistry
import System.FS.API (HasFS (..), withFile)
import System.FS.API.Types (AllowExisting (..), Handle,
Expand Down
@@ -1,6 +1,6 @@
module Ouroboros.Consensus.Util.MonadSTM.NormalForm (
module LazySTM
, module Ouroboros.Consensus.Util.MonadSTM.StrictMVar
, module Ouroboros.Consensus.Util.MonadSTM.StrictSVar
, module StrictSTM
, newEmptyMVar
, newMVar
Expand All @@ -23,10 +23,10 @@ import Control.Concurrent.Class.MonadSTM.TQueue as LazySTM
import Control.Monad.Class.MonadSTM as StrictSTM
import GHC.Stack
import NoThunks.Class (NoThunks (..), unsafeNoThunks)
import Ouroboros.Consensus.Util.MonadSTM.StrictMVar hiding
import Ouroboros.Consensus.Util.MonadSTM.StrictSVar hiding
(newEmptyMVar, newEmptyMVarWithInvariant, newMVar,
newMVarWithInvariant)
import qualified Ouroboros.Consensus.Util.MonadSTM.StrictMVar as Strict
import qualified Ouroboros.Consensus.Util.MonadSTM.StrictSVar as Strict

-- TODO: use strict versions of 'TQueue' and 'TBQueue'. Previously the
-- 'Control.Monad.Class.MonadSTM.Strict' was imported which
Expand Down
Expand Up @@ -7,7 +7,7 @@

-- TODO: this module ought to use 'MonadMVar'
-- See https://github.com/input-output-hk/io-sim/issues/34
module Ouroboros.Consensus.Util.MonadSTM.StrictMVar (
module Ouroboros.Consensus.Util.MonadSTM.StrictSVar (
castStrictMVar
, isEmptyMVar
, modifyMVar
Expand Down

0 comments on commit d34361d

Please sign in to comment.