Safe Haskell | None |
---|---|
Language | Haskell2010 |
Contains functions to execute the script using Shake.
Synopsis
- targetPath :: Target -> Maybe FilePath
- isFileTarget :: Target -> Bool
- enter :: Action -> Rules ()
- runScript :: Text -> Action ()
- fromCall :: Config -> Call -> Either MilkshakeError Action
- immediateActions :: Config -> Either MilkshakeError [Action]
- loadIncludes :: (MonadThrow m, MonadIO m) => Config -> m Config
Documentation
isFileTarget :: Target -> Bool #
Checks if target is a file
immediateActions :: Config -> Either MilkshakeError [Action] #
Looks for actions that are immediately runnable. These are the plain
Action
statements, as well as calls to rules. The calls are expanded
into actions, and a list of all actions is returned.
loadIncludes :: (MonadThrow m, MonadIO m) => Config -> m Config #
Recursively loads include statements, until no includes are left.