Safe Haskell | None |
---|---|
Language | Haskell2010 |
Combinators for working with Shake.
Synopsis
- buildStaticFiles :: [FilePath] -> Action ()
- forEvery :: [FilePath] -> (FilePath -> Action a) -> Action [a]
- writeFileCached :: FilePath -> String -> Action ()
- getCliConfig :: Action CliConfig
- ribInputDir :: Action FilePath
- ribOutputDir :: Action FilePath
Basic helpers
buildStaticFiles :: [FilePath] -> Action () Source #
Shake action to copy static files as is.
:: [FilePath] | Source file patterns (relative to |
-> (FilePath -> Action a) | |
-> Action [a] |
Run the given action when any file matching the patterns changes
Writing only
writeFileCached :: FilePath -> String -> Action () Source #
Write the given file but only when it has been modified.
Also, always writes under ribOutputDir
Misc
getCliConfig :: Action CliConfig Source #
Get rib settings from a shake Action monad.