HORIZON HASKELLDocslts/ghc-9.14.xd82dee82026-10-12Search names, modules, packages, or :: a typeCtrl K

GHC 9.14.1 · lts/ghc-9.14.x · d82dee8 · 2026-10-12

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
  • 2 types
  • 14 values
  • Packagefs-sim-0.5.0.1
  • Exports16
  • LanguageHaskell2010
  • LicenceApache-2.0
  • SourceFsTree.hs

FsTree type and indexing functions

3 declarations
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

1 declaration

Indexing

3 declarations

File system operations

7 declarations

Path-listing

1 declaration

Pretty-printing

1 declaration