fs-sim: Simulated file systems

[ apache, library, testing ] [ Propose Tags ] [ Report a vulnerability ]

Simulated file systems.


[Skip to Readme]

Downloads

Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.3.0.0, 0.3.0.1, 0.3.1.0
Change log CHANGELOG.md
Dependencies base (>=4.14 && <4.22), base16-bytestring (>=0.1 && <0.2 || >=1.0 && <1.1), bytestring (>=0.10 && <0.13), containers (>=0.5 && <0.8), fs-api (>=0.3 && <0.4), io-classes (>=1.6 && <1.8), mtl (>=2.2 && <2.4), primitive (>=0.9 && <0.10), QuickCheck (>=2.13 && <2.16), safe-wild-cards (>=1.0 && <1.1), text (>=1.2 && <1.3 || >=2.0 && <2.2) [details]
Tested with ghc ==8.10 || ==9.2 || ==9.4 || ==9.6 || ==9.8 || ==9.10
License Apache-2.0[multiple license files]
Copyright 2019-2024 Input Output Global Inc (IOG)
Author IOG Engineering Team
Maintainer operations@iohk.io, Joris Dral (joris@well-typed.com)
Revised Revision 1 made by ErikDeCastroLopo at 2025-02-27T03:42:33Z
Category Testing
Home page https://github.com/input-output-hk/fs-sim
Bug tracker https://github.com/input-output-hk/fs-sim/issues
Source repo head: git clone https://github.com/input-output-hk/fs-sim(fs-sim)
Uploaded by jdral at 2024-12-10T14:47:54Z
Distributions
Downloads 294 total (32 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs uploaded by user
Build status unknown [no reports yet]

Readme for fs-sim-0.3.1.0

[back to package description]

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.