cli-utils-4.1.0
LicenseBSD3
Maintainertbidne@gmail.com
Safe HaskellSafe
LanguageHaskell2010

Git.Stale.Types.Results

Description

Provides a Results type that wraps two maps, one for merged branches and one for unmerged.

Synopsis

Documentation

data Results Source #

Wrapper for holding Map Author [Branch a] data.

Constructors

Results 

Fields

Instances

Instances details
Show Results Source # 
Instance details

Defined in Git.Stale.Types.Results

newtype MergedDisp Source #

Newtype wrapper for merged branches over (display string, num branches).

Constructors

MergedDisp (Text, Int) 

newtype UnMergedDisp Source #

Newtype wrapper for unmerged branches over (display string, num branches).

Constructors

UnMergedDisp (Text, Int) 

newtype ResultsDisp Source #

Newtype wrapper over (MergedDisp, UnMergedDisp).

toResultsDisp :: Text -> Results -> ResultsDisp Source #

Transforms the Results into a ResultsDisp for display purposes. Strips out the prefix from the branches, if it exists.

toResults :: [AnyBranch] -> Results Source #

Maps [AnyBranch] to Results. Pattern matches on AnyBranch to reveal the underlying BranchStatus, ensuring merged and unmerged branches are organized separately.