Overhaul metadata merging and add 'ghcup config add-release-channel URI'

This commit is contained in:
2022-03-10 20:26:51 +01:00
parent fdcd6822c4
commit 8eeb32c495
6 changed files with 118 additions and 66 deletions

View File

@@ -286,9 +286,9 @@ instance Pretty TarDir where
-- | Where to fetch GHCupDownloads from.
data URLSource = GHCupURL
| OwnSource URI
| OwnSource [Either GHCupInfo URI] -- ^ complete source list
| OwnSpec GHCupInfo
| AddSource (Either GHCupInfo URI) -- ^ merge with GHCupURL
| AddSource [Either GHCupInfo URI] -- ^ merge with GHCupURL
deriving (GHC.Generic, Show)
instance NFData URLSource