| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Summoner.Tree
Documentation
Describes simple structure of filesystem tree.
Constructors
| Dir FilePath [TreeFs] | Name of directory (relative) and its containing entries |
| File FilePath Text | File name (relative) and file content |
Instances
| Eq TreeFs Source # | |
| Ord TreeFs Source # | |
| Show TreeFs Source # | |
| Generic TreeFs Source # | |
| type Rep TreeFs Source # | |
Defined in Summoner.Tree type Rep TreeFs = D1 (MetaData "TreeFs" "Summoner.Tree" "summoner-1.3.0-inplace" False) (C1 (MetaCons "Dir" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 FilePath) :*: S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 [TreeFs])) :+: C1 (MetaCons "File" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 FilePath) :*: S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text))) | |
traverseTree :: TreeFs -> IO () Source #
Walks through directory tree and write file contents, creating all intermediate directories.
showBoldTree :: TreeFs -> Text Source #
Pretty shows the directory tree content.