HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

Modulecabal-install-3.12.1.0Haskell2010

Distribution.Client.IndexUtils.ActiveRepos

  • 3 types
  • 3 values
newtypenewtype ActiveRepos
#

Ordered list of active repositories.

Instances9Eq, Show, Generic, NFData, Binary, Parsec, …
  • Eq ActiveReposDefined in cabal-install-3.12.1.0 · Distribution.Client.IndexUtils.ActiveRepos
  • Show ActiveReposDefined in cabal-install-3.12.1.0 · Distribution.Client.IndexUtils.ActiveRepos
  • Generic ActiveReposDefined in cabal-install-3.12.1.0 · Distribution.Client.IndexUtils.ActiveRepos
  • NFData ActiveReposDefined in cabal-install-3.12.1.0 · Distribution.Client.IndexUtils.ActiveRepos
  • Binary ActiveReposDefined in cabal-install-3.12.1.0 · Distribution.Client.IndexUtils.ActiveRepos
  • Parsec ActiveReposDefined in cabal-install-3.12.1.0 · Distribution.Client.IndexUtils.ActiveRepos

    Note: empty string is not valid ActiveRepos.

    Example1 expression
    simpleParsec "" :: Maybe ActiveReposNothing
    Example1 expression
    simpleParsec ":none" :: Maybe ActiveReposJust (ActiveRepos [])
    Example1 expression
    simpleParsec ":rest" :: Maybe ActiveReposJust (ActiveRepos [ActiveRepoRest CombineStrategyMerge])
    Example1 expression
    simpleParsec "hackage.haskell.org, :rest, head.hackage:override" :: Maybe ActiveReposJust (ActiveRepos [ActiveRepo (RepoName {unRepoName = "hackage.haskell.org"}) CombineStrategyMerge,ActiveRepoRest CombineStrategyMerge,ActiveRepo (RepoName {unRepoName = "head.hackage"}) CombineStrategyOverride])
  • Pretty ActiveReposDefined in cabal-install-3.12.1.0 · Distribution.Client.IndexUtils.ActiveRepos
  • Structured ActiveReposDefined in cabal-install-3.12.1.0 · Distribution.Client.IndexUtils.ActiveRepos
  • type Rep ActiveRepos = D1 ('MetaData "ActiveRepos" "Distribution.Client.IndexUtils.ActiveRepos" "cabal-install-3.12.1.0-1D90DH9PPem9Tqn79I9vRN" 'True) (C1 ('MetaCons "ActiveRepos" 'PrefixI 'False) (S1 ('MetaSel 'Nothing 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [ActiveRepoEntry])))Defined in cabal-install-3.12.1.0 · Distribution.Client.IndexUtils.ActiveRepos
datadata ActiveRepoEntry
#

Constructors

Instances9Eq, Show, Generic, NFData, Binary, Parsec, …
datadata CombineStrategy
#

Constructors

Instances11Bounded, Enum, Eq, Show, Generic, NFData, …

Sort values RepoName according to ActiveRepos list.

Example2 expressions
let repos = [RepoName "a", RepoName "b", RepoName "c"]organizeByRepos (ActiveRepos [ActiveRepoRest CombineStrategyMerge]) id reposRight [(RepoName {unRepoName = "a"},CombineStrategyMerge),(RepoName {unRepoName = "b"},CombineStrategyMerge),(RepoName {unRepoName = "c"},CombineStrategyMerge)]
Example1 expression
organizeByRepos (ActiveRepos [ActiveRepo (RepoName "b") CombineStrategyOverride, ActiveRepoRest CombineStrategyMerge]) id reposRight [(RepoName {unRepoName = "b"},CombineStrategyOverride),(RepoName {unRepoName = "a"},CombineStrategyMerge),(RepoName {unRepoName = "c"},CombineStrategyMerge)]
Example1 expression
organizeByRepos (ActiveRepos [ActiveRepoRest CombineStrategyMerge, ActiveRepo (RepoName "b") CombineStrategyOverride]) id reposRight [(RepoName {unRepoName = "a"},CombineStrategyMerge),(RepoName {unRepoName = "c"},CombineStrategyMerge),(RepoName {unRepoName = "b"},CombineStrategyOverride)]
Example1 expression
organizeByRepos (ActiveRepos [ActiveRepoRest CombineStrategyMerge, ActiveRepo (RepoName "d") CombineStrategyOverride]) id reposLeft "no repository provided d"

Note: currently if ActiveRepoRest is provided more than once, rest-repositories will be multiple times in the output.