Safe Haskell | None |
---|---|
Language | Haskell2010 |
- data File = File {}
- type Copy = (FilePath, FilePath)
- defaultFile :: File
- filePath :: Lens' File FilePath
- fileBase :: Lens' File FilePath
- makeFiles :: FilePath -> [FilePath] -> [File]
- makeFile :: FilePath -> FilePath -> File
- collapseFileLists :: [[File]] -> Action [File]
- collapseFileList :: [File] -> Action (Maybe File)
- collapseFile :: File -> Action (Maybe File)
- toCopies :: FilePath -> [File] -> [Copy]
- toCopy :: FilePath -> File -> Copy
Documentation
makeFiles :: FilePath -> [FilePath] -> [File] Source
Given a base and a list of relative paths, transform into file objects
makeFile :: FilePath -> FilePath -> File Source
Given a base and a relative path, return a file record containing the absolute path with the base
collapseFileLists :: [[File]] -> Action [File] Source
Collapse lists of possible files and return the first file that exists for each list
collapseFileList :: [File] -> Action (Maybe File) Source
Given a list of possible files, reduce to a file that exists, or nothing