@hackage fs-sim0.3.0.1

Simulated file systems

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.STM provides an implementation that uses STM.
  • System.FS.Sim.Error provides an implementation that uses STM, but can also simulate errors and file corruption.