Safe Haskell | Safe-Inferred |
---|
- runProcess :: OutputHooks -> Maybe FilePath -> FilePath -> [String] -> IO ExitCode
- upToDateCheck :: FilePath -> [FilePath] -> IO Bool
- defaultOutputHooks :: OutputHooks
- data OutputHooks = OutputHooks {
- putStrHook :: !(String -> IO ())
- putStrLnHook :: !(String -> IO ())
- putStrErrHook :: !(String -> IO ())
- putStrLnErrHook :: !(String -> IO ())
- flushStdOutHook :: !(IO ())
- warn :: OutputHooks -> Verbosity -> String -> IO ()
- notice :: OutputHooks -> Verbosity -> String -> IO ()
- info :: OutputHooks -> Verbosity -> String -> IO ()
- debug :: OutputHooks -> Verbosity -> String -> IO ()
- warn' :: Verbosity -> String -> IO ()
- notice' :: Verbosity -> String -> IO ()
- noticeRaw :: OutputHooks -> Verbosity -> String -> IO ()
- info' :: Verbosity -> String -> IO ()
- debug' :: Verbosity -> String -> IO ()
- data Dep = Dep {}
- data Verbosity
- intToVerbosity :: Int -> Maybe Verbosity
- silent :: Verbosity
- normal :: Verbosity
- verbose :: Verbosity
- deafening :: Verbosity
Documentation
:: OutputHooks | What to do with stdout & stderr |
-> Maybe FilePath | Working directory |
-> FilePath | Filename of the executable |
-> [String] | Arguments |
-> IO ExitCode | Process exit code |
Process creation.
upToDateCheck :: FilePath -> [FilePath] -> IO BoolSource
Is this target up to date w.r.t. its dependencies?
data OutputHooks Source
OutputHooks | |
|
warn :: OutputHooks -> Verbosity -> String -> IO ()Source
Non fatal conditions that may be indicative of an error or problem.
We display these at the normal
verbosity level.
info :: OutputHooks -> Verbosity -> String -> IO ()Source
More detail on the operation of some action.
We display these messages when the verbosity level is verbose
debug :: OutputHooks -> Verbosity -> String -> IO ()Source
Detailed internal debugging information
We display these messages when the verbosity level is deafening
noticeRaw :: OutputHooks -> Verbosity -> String -> IO ()Source
Useful status messages.
We display these at the normal
verbosity level.
This is for the ordinary helpful status messages that users see. Just enough information to know that things are working but not floods of detail.
A dependency as expressed by ghc -M output