Safe Haskell | None |
---|---|
Language | Haskell2010 |
Test.Util.FS.Sim.FsTree
Description
Deprecated: Use System.FS.Sim.FsTree from fs-sim
Synopsis
- data FsTree a
- data FsTreeError
- example ∷ Monoid a ⇒ FsTree a
- empty ∷ FsTree a
- getDir ∷ FsPath → FsTree a → Either FsTreeError (Folder a)
- getFile ∷ FsPath → FsTree a → Either FsTreeError a
- index ∷ FsPath → FsTree a → Either FsTreeError (FsTree a)
- createDirIfMissing ∷ FsPath → FsTree a → Either FsTreeError (FsTree a)
- createDirWithParents ∷ FsPath → FsTree a → Either FsTreeError (FsTree a)
- openFile ∷ Monoid a ⇒ FsPath → AllowExisting → FsTree a → Either FsTreeError (FsTree a)
- removeFile ∷ FsPath → FsTree a → Either FsTreeError (FsTree a)
- renameFile ∷ FsPath → FsPath → FsTree a → Either FsTreeError (FsTree a)
- replace ∷ FsPath → a → FsTree a → Either FsTreeError (FsTree a)
- pretty ∷ (a → String) → FsTree a → String
FsTree type and indexing functions
Instances
Functor FsTree | |
Eq a ⇒ Eq (FsTree a) | |
Show a ⇒ Show (FsTree a) | |
Generic (FsTree a) | |
NoThunks a ⇒ NoThunks (FsTree a) | |
type Rep (FsTree a) | |
Defined in System.FS.Sim.FsTree type Rep (FsTree a) = D1 ('MetaData "FsTree" "System.FS.Sim.FsTree" "fs-sim-0.1.0.0-cc1d207eee62cee9ef826d69d1f004e14b7d78abc9763306d3fcd6f65912f49e" 'False) (C1 ('MetaCons "File" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 a)) :+: C1 ('MetaCons "Folder" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Folder a)))) |
data FsTreeError #
Constructors
FsExpectedDir FsPath (NonEmpty Text) | |
FsExpectedFile FsPath | |
FsMissing FsPath (NonEmpty Text) | |
FsExists FsPath |
Instances
Show FsTreeError | |
Defined in System.FS.Sim.FsTree |
Construction
Indexing
File system operations
createDirIfMissing ∷ FsPath → FsTree a → Either FsTreeError (FsTree a) #
createDirWithParents ∷ FsPath → FsTree a → Either FsTreeError (FsTree a) #
openFile ∷ Monoid a ⇒ FsPath → AllowExisting → FsTree a → Either FsTreeError (FsTree a) #
removeFile ∷ FsPath → FsTree a → Either FsTreeError (FsTree a) #
renameFile ∷ FsPath → FsPath → FsTree a → Either FsTreeError (FsTree a) #