Karya, built on Mon Jul 24 11:39:07 PDT 2017 (patch 33511aca01257b76b88de7c7a2763b7a965c084e)

Safe HaskellNone

Shake.Util

Contents

Synopsis

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.

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 :: Show a => Shake.Action a -> IO () Source #

Run an Action, useful for interactive testing.

ghc

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

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

platform

data Platform Source #

Constructors

Mac 
Linux 

general

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 #