- type InApp a = a -> a
- type DirName = String
- type FileName = String
- type FileCnt = ByteString
- type DirPath = [DirName]
- toDirPath :: FilePath -> DirPath
- fromDirPath :: DirPath -> FilePath
- type FPath = (DirPath, FileName)
- toFPath :: FilePath -> FPath
- fromFPath :: FPath -> FilePath
- data FileData = FD {}
- emptyFD :: FileData
- data File = File {}
- type FSE = Either (DirName, FileSystem) File
- newtype FileSystem = Directory {}
- emptyFileSystem :: FileSystem
- modDirCnt :: InApp [FSE] -> InApp FileSystem
- data Path = Path {}
- isFilePath :: Path -> Bool
- type FSState = FileSystem
- newtype FST m a = WrapFST {}
- runFST :: Monad m => FST m a -> FSState -> m (a, FSState)
- type FS = FST Identity
- runFS :: FS a -> FSState -> (a, FSState)
Synonyms
type FileCnt = ByteStringSource
The content of a file. Stored in a ByteString
.
type FPath = (DirPath, FileName)Source
A file path, composed by the path of the directory which contains it, and its file name.
File
Information about the content of a file.
A complete file.
File System
type FSE = Either (DirName, FileSystem) FileSource
File System Element: Each one of the elements in a FileSystem
.
newtype FileSystem Source
The file system structure. It stores a directory with files and subdirectories.
emptyFileSystem :: FileSystemSource
An empty file system.
modDirCnt :: InApp [FSE] -> InApp FileSystemSource
Lift a function over a list of FSE
(File System Elements)
to a function over FileSystem
.
Path
FileSystem monad
type FSState = FileSystemSource
The state of file system computations.
Currently, a FileSystem
structure.
Monadic transformer which adds a FSState
environment.