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, 0.3.1.0, 0.4.0.0, 0.4.1.0, 0.5.0.0, 0.5.0.1
Change log CHANGELOG.md
Dependencies base (>=4.16 && <4.23), base16-bytestring (>=0.1 && <0.2 || >=1.0 && <1.1), bytestring (>=0.10 && <0.13), containers (>=0.5 && <0.9), fs-api (>=0.4 && <0.5), io-classes (>=1.6 && <1.8 || >=1.8.0.1 && <1.11), mtl (>=2.2 && <2.4), primitive (>=0.9 && <0.10), QuickCheck (>=2.13 && <2.19), safe-wild-cards (>=1.0 && <1.1), text (>=1.2 && <1.3 || >=2.0 && <2.2) [details]
Tested with ghc ==9.2 || ==9.4 || ==9.6 || ==9.8 || ==9.10 || ==9.12 || ==9.14
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)
Uploaded by jasagredo at 2026-05-18T13:55:57Z
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)
this: git clone https://github.com/input-output-hk/fs-sim(tag fs-sim-0.5.0.0)(fs-sim)
Distributions
Downloads 394 total (12 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 2026-05-18 [all 2 reports]

Readme for fs-sim-0.5.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.