fedora-dists-2.0.0: Library for Fedora distribution versions
Copyright(C) 2020-2022 Jens Petersen
MaintainerJens Petersen <petersen@fedoraproject.org>
Safe HaskellNone
LanguageHaskell2010

Distribution.Fedora.Branch

Description

 
Synopsis

Documentation

data Branch Source #

Branch datatype

Branch can be rawhide, or a fedora or epel branch

Constructors

EPEL Int 
Fedora Int 
Rawhide 

Instances

Instances details
Eq Branch Source # 
Instance details

Defined in Distribution.Fedora.Branch

Methods

(==) :: Branch -> Branch -> Bool #

(/=) :: Branch -> Branch -> Bool #

Ord Branch Source # 
Instance details

Defined in Distribution.Fedora.Branch

Show Branch Source # 
Instance details

Defined in Distribution.Fedora.Branch

readBranch :: String -> Maybe Branch Source #

Read a Fedora Branch name

readBranch' :: String -> Branch Source #

Unsafely read a Fedora Branch name: errors for unknown branches

eitherBranch :: String -> Either String Branch Source #

Read a Fedora Branch name, otherwise return branch string

eitherBranch' :: String -> Either String Branch Source #

Read a Fedora Branch name, otherwise return an error message

readActiveBranch :: [Branch] -> String -> Maybe Branch Source #

Read a Branch name (one of the list of active branches)

Similar to eitherActiveBranch but ignores any error string

readActiveBranch' :: [Branch] -> String -> Branch Source #

Read a Branch name (one of the list of active branches)

Like readActiveBranch, but errors for inactive or unknown branches.

eitherActiveBranch :: [Branch] -> String -> Either String Branch Source #

Read a Branch name (one of the list of active branches)

Provides error strings for inactive or unknown branches.

newerBranch :: Branch -> [Branch] -> Branch Source #

Returns newer branch than given one from supplied active branches.

Branches should be in descending order, eg from getFedoraBranches

releaseBranch :: Text -> Branch Source #

Maps release-id to Branch

getFedoraBranches :: IO [Branch] Source #

Returns list of active Fedora branches, including rawhide and EPEL

getFedoraBranched :: IO [Branch] Source #

Returns list of active Fedora branches, excluding rawhide

branchDestTag :: Branch -> String Source #

Map Branch to Koji destination tag

branchDist :: Branch -> IO Dist Source #

Convert a Branch to a Dist

branchTarget :: Branch -> String Source #

Default build target associated with a branch