stack-network-0.1.0.1: A program for extending Stack to add distributed capabilities

Copyright(c) 2018 Sean McGroarty
LicenseBSD3
MaintainerSean McGroarty <mcgroas@tcd.ie.com>
Stabilityexperimental
Safe HaskellNone
LanguageHaskell2010

Network.Distributed.Utils

Description

 

Synopsis

Documentation

parseNetConfig :: IO NetworkConfig Source #

Parsers configuration from provided network.config file

log :: MonadIO m => String -> m () Source #

Logs to stdout in grey

logSucc :: MonadIO m => String -> m () Source #

Logs to stdout in green

logWarn :: MonadIO m => String -> m () Source #

Logs to stdout in red

listDeps :: MonadIO m => m [String] Source #

Determines a nodes dependencies

getBestPid Source #

Arguments

:: [(Deps, Node)]

a list of pairs of Nodes and their dependencies

-> Deps

Master nodes dependencies

-> (Maybe Node, Int)

Current best. Initially set to (Nothing,0)

-> 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

timeIt Source #

Arguments

:: 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