ouroboros-consensus-test-0.3.1.0: Tests of the consensus layer
Safe HaskellNone
LanguageHaskell2010

Test.Util.FS.Sim.FsTree

Description

Deprecated: Use System.FS.Sim.FsTree from fs-sim

Synopsis

FsTree type and indexing functions

data FsTree a #

Constructors

File !a 
Folder !(Folder a) 

Instances

Instances details
Functor FsTree 
Instance details

Defined in System.FS.Sim.FsTree

Methods

fmap ∷ (a → b) → FsTree a → FsTree b Source #

(<$) ∷ a → FsTree b → FsTree a Source #

Eq a ⇒ Eq (FsTree a) 
Instance details

Defined in System.FS.Sim.FsTree

Methods

(==)FsTree a → FsTree a → Bool Source #

(/=)FsTree a → FsTree a → Bool Source #

Show a ⇒ Show (FsTree a) 
Instance details

Defined in System.FS.Sim.FsTree

Methods

showsPrecIntFsTree a → ShowS Source #

showFsTree a → String Source #

showList ∷ [FsTree a] → ShowS Source #

Generic (FsTree a) 
Instance details

Defined in System.FS.Sim.FsTree

Associated Types

type Rep (FsTree a) ∷ TypeType Source #

Methods

fromFsTree a → Rep (FsTree a) x Source #

toRep (FsTree a) x → FsTree a Source #

NoThunks a ⇒ NoThunks (FsTree a) 
Instance details

Defined in System.FS.Sim.FsTree

Methods

noThunks ∷ Context → FsTree a → IO (Maybe ThunkInfo) #

wNoThunks ∷ Context → FsTree a → IO (Maybe ThunkInfo) #

showTypeOfProxy (FsTree a) → String #

type Rep (FsTree a) 
Instance details

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 ('NothingMaybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 a)) :+: C1 ('MetaCons "Folder" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Folder a))))

exampleMonoid a ⇒ FsTree a #

Construction

emptyFsTree a #

Indexing

getDirFsPathFsTree a → Either FsTreeError (Folder a) #

File system operations

replaceFsPath → a → FsTree a → Either FsTreeError (FsTree a) #

Pretty-printing

pretty ∷ (a → String) → FsTree a → String #