Karya, built on 2020-11-26T21:03:17 (patch 23b5be2d53a9e8e7d6136cda5aae2849abe5cded)
Safe HaskellNone



shake specific

type Cmdline = (String, String, [String]) Source #

(short_name_for_cmd, output_file_name, [cmd])

cmdline :: Cmdline -> Shake.Action () Source #

This is like system, but expect a Cmdline. It logs an abbreviated cmdline at quiet, and a complete cmdline at normal.

Shake logs # key msgs at and cmds at loud. However, I think cmds should be at normal, and the keys should be at loud, because the cmds give a progress indication, while the keys just make any compiler errors scroll off the screen.

systemKeepGoing :: IO.FilePath -> [String] -> Shake.Action () Source #

Like system, but don't ignore the exit code.

shell :: String -> Shake.Action () Source #

Run a shell command, and crash if it fails.

findFiles :: (IO.FilePath -> Bool) -> Shake.FilePattern -> IO.FilePath -> Shake.Action [IO.FilePath] Source #

Recursively find files below a directory.

runIO :: IO.FilePath -> Shake.Action a -> IO.IO a Source #

Run an Action, useful for interactive testing.


sandboxPackageDb :: IO.IO (Maybe.Maybe IO.FilePath) Source #

If there is a cabal sandbox in the current directory, return the path to its package db.


data Platform Source #




Instances details
Eq Platform # 
Instance details

Defined in Shake.Util

Show Platform # 
Instance details

Defined in Shake.Util


ifM :: Monad m => m Bool -> m a -> m a -> m a Source #

whenM :: Monad m => m Bool -> m () -> m () Source #

errorIO :: MonadIO m => String -> m a Source #