@hackage fs-sim0.5.0.1
Simulated file systems
Categories
License
Apache-2.0
Maintainer
operations@iohk.io, Joris Dral (joris@well-typed.com)
Links
Versions
Installation
Dependencies (11)
- QuickCheck ^>=2.13 || ^>=2.14 || ^>=2.15 || ^>=2.16 || ^>=2.17 || ^>=2.18
- base >=4.16 && <4.23
- base16-bytestring ^>=0.1 || ^>=1.0
- bytestring ^>=0.10 || ^>=0.11 || ^>=0.12
- containers ^>=0.5 || ^>=0.6 || ^>=0.7 || ^>=0.8
- fs-api ^>=0.4 Show all…
Dependents (2)
@hackage/blockio, @hackage/lsm-tree
fs-sim
The fs-sim package provides a filesystem simulator that facilitates
simulation of errors and file corruption. This simulator is specially useful for
testing purposes, and works well in conjunction with
io-sim.
Code that is written using the abstract filesystem interface (HasFS) that is
provided by the parent package fs-api can be run against any of the simulator
implementations provided by fs-sim. fs-sim currently provides two
simulators:
System.FS.Sim.STMprovides an implementation that uses STM.System.FS.Sim.Errorprovides an implementation that uses STM, but can also simulate errors and file corruption.