-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | More efficient replacement to the great git-radar -- -- Please see README.md @package gitHUD @version 1.2.0 module GitHUD.Terminal.Types data Color Black :: Color Red :: Color Green :: Color Yellow :: Color Blue :: Color Magenta :: Color Cyan :: Color White :: Color data ColorIntensity Dull :: ColorIntensity Vivid :: ColorIntensity data Shell ZSH :: Shell Other :: Shell instance GHC.Show.Show GitHUD.Terminal.Types.Shell instance GHC.Classes.Eq GitHUD.Terminal.Types.Shell instance GHC.Read.Read GitHUD.Terminal.Types.ColorIntensity instance GHC.Show.Show GitHUD.Terminal.Types.ColorIntensity instance GHC.Classes.Eq GitHUD.Terminal.Types.ColorIntensity instance GHC.Read.Read GitHUD.Terminal.Types.Color instance GHC.Show.Show GitHUD.Terminal.Types.Color instance GHC.Classes.Eq GitHUD.Terminal.Types.Color module GitHUD.Process readProcessWithIgnoreExitCode :: FilePath -> [String] -> String -> IO String module GitHUD.Git.Types data GitLocalRepoChanges GitLocalRepoChanges :: Int -> Int -> Int -> Int -> Int -> Int -> Int -> Int -> GitLocalRepoChanges [localMod] :: GitLocalRepoChanges -> Int [localAdd] :: GitLocalRepoChanges -> Int [localDel] :: GitLocalRepoChanges -> Int [indexMod] :: GitLocalRepoChanges -> Int [indexAdd] :: GitLocalRepoChanges -> Int [indexDel] :: GitLocalRepoChanges -> Int [renamed] :: GitLocalRepoChanges -> Int [conflict] :: GitLocalRepoChanges -> Int zeroLocalRepoChanges :: GitLocalRepoChanges data GitRepoState GitRepoState :: GitLocalRepoChanges -> String -> String -> String -> String -> Int -> Int -> Int -> Int -> Int -> GitRepoState [gitLocalRepoChanges] :: GitRepoState -> GitLocalRepoChanges [gitLocalBranch] :: GitRepoState -> String [gitCommitShortSHA] :: GitRepoState -> String [gitRemote] :: GitRepoState -> String [gitRemoteTrackingBranch] :: GitRepoState -> String [gitStashCount] :: GitRepoState -> Int [gitCommitsToPull] :: GitRepoState -> Int [gitCommitsToPush] :: GitRepoState -> Int [gitRemoteCommitsToPull] :: GitRepoState -> Int [gitRemoteCommitsToPush] :: GitRepoState -> Int zeroGitRepoState :: GitRepoState mergeGitLocalRepoChanges :: GitLocalRepoChanges -> GitLocalRepoChanges -> GitLocalRepoChanges instance GHC.Show.Show GitHUD.Git.Types.GitRepoState instance GHC.Classes.Eq GitHUD.Git.Types.GitRepoState instance GHC.Classes.Eq GitHUD.Git.Types.GitLocalRepoChanges instance GHC.Show.Show GitHUD.Git.Types.GitLocalRepoChanges module GitHUD.Git.Parse.Status -- | In case of error, return zeroRepoState, i.e. no changes gitParseStatus :: String -> GitLocalRepoChanges instance GHC.Show.Show GitHUD.Git.Parse.Status.GitFileState module GitHUD.Git.Parse.Count getCount :: String -> Int module GitHUD.Git.Parse.Branch buildFullyQualifiedRemoteBranchName :: String -> String -> String module GitHUD.Git.Common gitRemoteTrackingConfigKey :: String -> String gitRemoteBranchConfigKey :: String -> String mergeBaseDiffFromTo :: String -> String -> String module GitHUD.Git.Command gitCmdLocalBranchName :: MVar String -> IO () gitCmdRemoteName :: String -> MVar String -> IO () gitCmdRemoteBranchName :: String -> MVar String -> IO () gitCmdPorcelainStatus :: MVar String -> IO () gitCmdRevToPush :: String -> String -> MVar String -> IO () gitCmdRevToPull :: String -> String -> MVar String -> IO () gitCmdStashCount :: MVar String -> IO () gitCmdCommitShortSHA :: MVar String -> IO () checkInGitDirectory :: IO Bool module GitHUD.Git.Parse.Base getGitRepoState :: IO GitRepoState module GitHUD.Config.Types data Config Config :: String -> String -> Color -> ColorIntensity -> String -> Color -> ColorIntensity -> String -> String -> String -> String -> String -> String -> String -> Color -> ColorIntensity -> Color -> ColorIntensity -> String -> Color -> ColorIntensity -> String -> Color -> ColorIntensity -> String -> Color -> ColorIntensity -> String -> Color -> ColorIntensity -> String -> Color -> ColorIntensity -> String -> Color -> ColorIntensity -> String -> Color -> ColorIntensity -> String -> Color -> ColorIntensity -> String -> Color -> ColorIntensity -> String -> Color -> ColorIntensity -> String -> Color -> ColorIntensity -> String -> Color -> ColorIntensity -> Config [confRepoIndicator] :: Config -> String [confNoUpstreamString] :: Config -> String [confNoUpstreamStringColor] :: Config -> Color [confNoUpstreamStringIntensity] :: Config -> ColorIntensity [confNoUpstreamIndicator] :: Config -> String [confNoUpstreamIndicatorColor] :: Config -> Color [confNoUpstreamIndicatorIntensity] :: Config -> ColorIntensity [confRemoteCommitsIndicator] :: Config -> String [confRemoteCommitsOnlyPush] :: Config -> String [confRemoteCommitsOnlyPull] :: Config -> String [confRemoteCommitsBothPullPush] :: Config -> String [confLocalBranchNamePrefix] :: Config -> String [confLocalBranchNameSuffix] :: Config -> String [confLocalDetachedPrefix] :: Config -> String [confLocalBranchColor] :: Config -> Color [confLocalBranchIntensity] :: Config -> ColorIntensity [confLocalDetachedColor] :: Config -> Color [confLocalDetachedIntensity] :: Config -> ColorIntensity [confLocalCommitsPushSuffix] :: Config -> String [confLocalCommitsPushSuffixColor] :: Config -> Color [confLocalCommitsPushSuffixIntensity] :: Config -> ColorIntensity [confLocalCommitsPullSuffix] :: Config -> String [confLocalCommitsPullSuffixColor] :: Config -> Color [confLocalCommitsPullSuffixIntensity] :: Config -> ColorIntensity [confLocalCommitsPushPullInfix] :: Config -> String [confLocalCommitsPushPullInfixColor] :: Config -> Color [confLocalCommitsPushPullInfixIntensity] :: Config -> ColorIntensity [confChangeIndexAddSuffix] :: Config -> String [confChangeIndexAddSuffixColor] :: Config -> Color [confChangeIndexAddSuffixIntensity] :: Config -> ColorIntensity [confChangeIndexModSuffix] :: Config -> String [confChangeIndexModSuffixColor] :: Config -> Color [confChangeIndexModSuffixIntensity] :: Config -> ColorIntensity [confChangeIndexDelSuffix] :: Config -> String [confChangeIndexDelSuffixColor] :: Config -> Color [confChangeIndexDelSuffixIntensity] :: Config -> ColorIntensity [confChangeLocalAddSuffix] :: Config -> String [confChangeLocalAddSuffixColor] :: Config -> Color [confChangeLocalAddSuffixIntensity] :: Config -> ColorIntensity [confChangeLocalModSuffix] :: Config -> String [confChangeLocalModSuffixColor] :: Config -> Color [confChangeLocalModSuffixIntensity] :: Config -> ColorIntensity [confChangeLocalDelSuffix] :: Config -> String [confChangeLocalDelSuffixColor] :: Config -> Color [confChangeLocalDelSuffixIntensity] :: Config -> ColorIntensity [confChangeRenamedSuffix] :: Config -> String [confChangeRenamedSuffixColor] :: Config -> Color [confChangeRenamedSuffixIntensity] :: Config -> ColorIntensity [confChangeConflictedSuffix] :: Config -> String [confChangeConflictedSuffixColor] :: Config -> Color [confChangeConflictedSuffixIntensity] :: Config -> ColorIntensity [confStashSuffix] :: Config -> String [confStashSuffixColor] :: Config -> Color [confStashSuffixIntensity] :: Config -> ColorIntensity defaultConfig :: Config instance GHC.Show.Show GitHUD.Config.Types.Config instance GHC.Classes.Eq GitHUD.Config.Types.Config module GitHUD.Types data OutputConfig OutputConfig :: Shell -> GitRepoState -> Config -> OutputConfig [_shell] :: OutputConfig -> Shell [_repoState] :: OutputConfig -> GitRepoState [_config] :: OutputConfig -> Config buildOutputConfig :: Shell -> GitRepoState -> Config -> OutputConfig type Prompt = String type TerminalState = Reader OutputConfig String type ShellOutput = WriterT Prompt (Reader OutputConfig) () getShell :: MonadReader OutputConfig m => m Shell getRepoState :: MonadReader OutputConfig m => m GitRepoState getConfig :: MonadReader OutputConfig m => m Config module GitHUD.Terminal.Base tellStringInColor :: Color -> ColorIntensity -> String -> ShellOutput applyShellMarkers :: Shell -> String -> String terminalEndCode :: String terminalStartCode :: Color -> ColorIntensity -> String module GitHUD.Terminal.Prompt -- | From the state of the terminal (shell type + git info), builds a -- prompt to | display by accumulating data in a Writer and returning it buildPromptWithConfig :: TerminalState addGitRepoIndicator :: ShellOutput addUpstreamIndicator :: ShellOutput addRemoteCommits :: ShellOutput addLocalBranchName :: ShellOutput addLocalCommits :: ShellOutput addRepoState :: ShellOutput addStashes :: ShellOutput module GitHUD.Config.Parse parseConfigFile :: FilePath -> IO Config commentParser :: Parser ConfigItem itemParser :: Parser ConfigItem -- | Must not be able to process an empty string This is mandated by the -- use of many in configFileParser Therefore the definition -- `manyTill anyChar eof` is invalid, thus using newline fallThroughItemParser :: Parser ConfigItem configItemsFolder :: Config -> ConfigItem -> Config data ConfigItem Item :: String -> String -> ConfigItem Comment :: ConfigItem ErrorLine :: ConfigItem colorConfigToColor :: String -> Color intensityConfigToIntensity :: String -> ColorIntensity instance GHC.Show.Show GitHUD.Config.Parse.ConfigItem instance GHC.Classes.Eq GitHUD.Config.Parse.ConfigItem module GitHUD githud :: IO ()