Safe Haskell | None |
---|---|
Language | Haskell2010 |
BDCS.Export.FSTree
- type FSEntry = (FilePath, Maybe Files)
- type FSTree = Tree FSEntry
- addFileToTree :: MonadError String m => Bool -> FSTree -> Files -> m FSTree
- filesToTree :: MonadError String m => Sink Files m FSTree
- fstreeSource :: Monad m => FSTree -> Source m Files
Documentation
type FSEntry = (FilePath, Maybe Files) Source #
A single node within a file system tree. The pair is a single path component (e.g., "c" for the node at "ab/c"), and maybe a Files object. Automatically created parent directories will use Nothing as the snd element.
filesToTree :: MonadError String m => Sink Files m FSTree Source #