summoner-1.3.0: Tool for scaffolding fully configured batteries-included production-level Haskell projects.

Safe HaskellNone
LanguageHaskell2010

Summoner.Tree

Synopsis

Documentation

data TreeFs Source #

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 # 
Instance details

Defined in Summoner.Tree

Methods

(==) :: TreeFs -> TreeFs -> Bool #

(/=) :: TreeFs -> TreeFs -> Bool #

Ord TreeFs Source # 
Instance details

Defined in Summoner.Tree

Show TreeFs Source # 
Instance details

Defined in Summoner.Tree

Generic TreeFs Source # 
Instance details

Defined in Summoner.Tree

Associated Types

type Rep TreeFs :: Type -> Type #

Methods

from :: TreeFs -> Rep TreeFs x #

to :: Rep TreeFs x -> TreeFs #

type Rep TreeFs Source # 
Instance details

Defined in Summoner.Tree

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.

showTree Source #

Arguments

:: Bool

Print directories bold.

-> TreeFs

Given tree.

-> Text

Pretty output.

Pretty shows tree with options.