hake-1.3.8.1: make tool. ruby : rake = haskell : hake

Safe HaskellNone
LanguageHaskell98

Development.Hake

Synopsis

Documentation

type Rule = (Targets, Sources, Commands) Source

hake :: [Rule] -> IO () Source

The hake function take rules as argument and get target from command line and make target.

hakeT :: [Rule] -> FilePath -> IO () Source

base :: Targets -> Sources -> (String -> [String] -> MadeFromList -> Bool -> IO ExitCode) -> Rule Source

addDeps :: [Rule] -> [(FilePath, [FilePath])] -> [Rule] Source

setCmd :: Rule -> (String -> [String] -> MadeFromList -> IO ExitCode) -> Rule Source

isSuffixOf :: Eq a => [a] -> [a] -> Bool

The isSuffixOf function takes two lists and returns True iff the first list is a suffix of the second. Both lists must be finite.

data ExitCode :: *

Defines the exit codes that a program can return.

Constructors

ExitSuccess

indicates successful termination;

ExitFailure Int

indicates program failure with an exit code. The exact interpretation of the code is operating-system dependent. In particular, some values may be prohibited (e.g. 0 on a POSIX-compliant system).

const2 :: a -> b -> c -> a