fs-sim: Simulated file systems

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

Simulated file systems.


[Skip to Readme]

Modules

[Last Documentation]

  • System
    • FS
      • Sim
        • System.FS.Sim.Error
        • System.FS.Sim.FsTree
        • System.FS.Sim.MockFS
        • System.FS.Sim.Prim
        • System.FS.Sim.STM
        • System.FS.Sim.Stream

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.3.0.0, 0.3.0.1
Change log CHANGELOG.md
Dependencies base (>=4.14 && <4.21), 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)
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-10-02T10:41:30Z
Distributions
Downloads 146 total (53 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs not available [build log]
All reported builds failed as of 2024-10-03 [all 4 reports]

Readme for fs-sim-0.3.0.1

[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.