Karya, built on 2018-05-31T02:46:59 (patch 0a1a35479c514820d77330ae8a978975ba22a47a)

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.

staunchSystem :: 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.

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

Log one thing at quiet, and another at normal or above.

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

Recursively find files below a directory.

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

Run an Action, useful for interactive testing.


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

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


data Platform Source #


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 #