herringbone-0.1.1: A library for compiling and serving static web assets.

Safe HaskellNone

Web.Herringbone.Internal.Utils

Synopsis

Documentation

getFilesRecursive :: FilePath -> IO [FilePath]Source

Return the absolute paths of all files (excluding directories and other things) below the given root.

getFilesRecursiveRelative :: FilePath -> IO [FilePath]Source

Return the relative paths of all files (excluding directories and other things) below the given root.

partitionM :: Monad m => (a -> m Bool) -> [a] -> m ([a], [a])Source

Partition a list of values based on a monadic predicate, with the list of values satisfying the predicate as the first element of the result pair, and the list of values not satisfying the predicate as the second.