ouroboros-consensus-test-0.1.0.0: Tests of the consensus layer
Safe HaskellNone
LanguageHaskell2010

Test.Util.FS.Sim.STM

Description

HasFS instance using MockFS stored in an STM variable

Synopsis

Documentation

runSimFS ∷ (MonadSTM m, MonadThrow m) ⇒ MockFS → (HasFS m HandleMock → m a) → m (a, MockFS) Source #

simHasFS ∷ ∀ m. (MonadSTM m, MonadThrow m) ⇒ StrictTVar m MockFSHasFS m HandleMock Source #

Equip m with a HasFs instance using the mock file system