HORIZON HASKELLDocslts/ghc-9.14.x99ffbb82026-10-19Search packagesCtrl K
Theme: |

GHC 9.14.1 · lts/ghc-9.14.x · 99ffbb8 · 2026-10-19

Modulefs-sim-0.5.0.1Haskell2010

System.FS.Sim.FsTree

Internal part of the mock file system

Intended for qualified import

import           System.FS.Sim.FsTree (FsTree)
import qualified System.FS.Sim.FsTree as FS
Contents
  1. FsTree type and indexing functions
  2. Construction
  3. Indexing
  4. File system operations
  5. Path-listing
  6. Pretty-printing
Synopsis
  • Packagefs-sim-0.5.0.1
  • Exports16
  • LanguageHaskell2010
  • LicenceApache-2.0
  • SourceFsTree.hs

FsTree type and indexing functions

datadata FsTree a

Simple in-memory representation of a file system

Constructors

Instances5Functor, Eq, Show, Generic, Rep
datadata FsTreeError

File access error

Constructors

  • FsExpectedDir FsPath (NonEmpty Text)

    A path ..a.. where a is a file rather than a dir

    We record both the full path and the invalid suffix.

  • FsExpectedFile FsPath

    A path ..a.. where a is a dir rather than a file

    No suffix is specified (it must be the last part of the file)

  • FsMissing FsPath (NonEmpty Text)

    A path ..a.. or ../a where directory or file a is missing

    We record both the full path and the missing suffix.

  • FsExists FsPath

    A file was opened with the O_EXCL flag, but it already existed.

Instances1Show

Construction

Indexing

File system operations

Path-listing

Pretty-printing