| License | BSD3 |
|---|---|
| Maintainer | tbidne@gmail.com |
| Safe Haskell | Safe |
| Language | Haskell2010 |
Git.Stale.Types.Results
Description
Provides a Results type that wraps two maps, one for merged branches
and one for unmerged.
Synopsis
- data Results = Results {}
- newtype MergedDisp = MergedDisp (Text, Int)
- newtype UnMergedDisp = UnMergedDisp (Text, Int)
- newtype ResultsDisp = ResultsDisp (MergedDisp, UnMergedDisp)
- toResultsDisp :: Text -> Results -> ResultsDisp
- toResults :: [AnyBranch] -> Results
Documentation
Constructors
| 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).
Constructors
| ResultsDisp (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.