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

Git.Stale.Types.Branch

Description

Provides types for holding branch information.

Synopsis

Documentation

data AnyBranch where Source #

Hides BranchStatus type parameter, used for processing Branch a in heterogeneous collections.

Instances

Instances details
Show AnyBranch Source # 
Instance details

Defined in Git.Stale.Types.Branch

data BranchStatus where Source #

Promoted data type used for adding type-safe merge status to branches.

data Branch (a :: BranchStatus) where Source #

Holds branch information with phantom BranchStatus.

Constructors

MkBranch :: Name -> Author -> Day -> Branch a 

Instances

Instances details
Show (Branch a) Source # 
Instance details

Defined in Git.Stale.Types.Branch

Methods

showsPrec :: Int -> Branch a -> ShowS #

show :: Branch a -> String #

showList :: [Branch a] -> ShowS #

branchesToName :: Text -> [Branch a] -> Text Source #

Maps each [Branch a] to its Text Name and concatenates results. Attempts to strip out an irrelevant prefix it may have (i.e. remoteName).

mkAnyBranch :: Name -> Author -> Day -> Bool -> AnyBranch Source #

Constructs an AnyBranch wrapper around a Branch a where a is Merged if passed True, UnMerged otherwise.