Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data FileKind
- data FileContext a = FC {}
- data Config = Config {
- showSelection :: Bool
- previewDir :: Bool
- data FileTree a = FT {}
- type SubTree a = Cofree (GenericList String Vector) (FileContext a)
- buildParent :: FilePath -> ValueLoader a -> SubTree a -> IO (FileTree a)
- newFileTree :: ValueLoader a -> FilePath -> IO (FileTree a)
- defaultConfig :: Config
Documentation
data FileContext a Source #
Config | |
|
Represents all the state required to interact with or display a filetree
type SubTree a = Cofree (GenericList String Vector) (FileContext 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).