brick-filetree-0.1.0.3

Safe HaskellNone
LanguageHaskell2010

Brick.Widgets.FileTree.Internal.Types

Synopsis

Documentation

data FileContext a Source #

Constructors

FC 

Fields

data Config Source #

Constructors

Config 

data FileTree a Source #

Represents all the state required to interact with or display a filetree

Constructors

FT 

Fields

buildParent :: FilePath -> ValueLoader a -> SubTree a -> IO (FileTree a) Source #

newFileTree :: ValueLoader a -> FilePath -> IO (FileTree a) Source #

Create a new FileTree situated at the given FilePath

The given ValueLoader will be used to load additional context for each filepath (dirs AND files). It will be called lazily using unsafeInterleaveIO when the value itself is accessed (if ever).