Copyright | (c) 2018 Sean McGroarty |
---|---|
License | BSD3 |
Maintainer | Sean McGroarty <mcgroas@tcd.ie.com> |
Stability | experimental |
Safe Haskell | None |
Language | Haskell2010 |
- parseNetConfig :: IO NetworkConfig
- log :: MonadIO m => String -> m ()
- logSucc :: MonadIO m => String -> m ()
- logWarn :: MonadIO m => String -> m ()
- listDeps :: MonadIO m => m [String]
- getBestPid :: [(Deps, Node)] -> Deps -> (Maybe Node, Int) -> Maybe Node
- encodePath :: FilePath -> ByteString
- decodePath :: ByteString -> FilePath
- timeIt :: MonadIO m => m a -> m a
- runStackBuild :: IO ()
- runStackBuildT :: IO ()
Documentation
parseNetConfig :: IO NetworkConfig Source #
Parsers configuration from provided network.config
file
:: [(Deps, Node)] | a list of pairs of Nodes and their dependencies |
-> Deps | Master nodes dependencies |
-> (Maybe Node, Int) | Current best. Initially set to |
-> Maybe Node |
Finds the ProcessId with the most overlapp, returning Nothing if there is no overlapp
encodePath :: FilePath -> ByteString Source #
Cross-platform encoding of FilePath
decodePath :: ByteString -> FilePath Source #
Cross-platform decoding of FilePath
:: MonadIO m | |
=> m a | Action to time |
-> m a |
Times an action
Logs out the amount of seconds the action took
runStackBuild :: IO () Source #
Runs a build
runStackBuildT :: IO () Source #
Runs a timed build