duplo-1.6.19: Frontend development build tool

Safe HaskellNone
LanguageHaskell2010

Development.Duplo.FileList

Synopsis

Documentation

data File Source

Constructors

File 

Instances

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

collapseFile :: File -> Action (Maybe File) Source

Given a file, return itself if it exists

toCopies :: FilePath -> [File] -> [Copy] Source

Given an output path and a list of file objects, convert all files objects to copy pairs. See toCopy for more information.

toCopy :: FilePath -> File -> Copy Source

Given an output path and a file object, return a copy pair whose to path is relative to the output path in the same way as the provided file object's path is relative to its base.