diff --git a/HACKING.md b/HACKING.md index 2167c90..623086b 100644 --- a/HACKING.md +++ b/HACKING.md @@ -52,8 +52,19 @@ organised tree-ish in `GHCup.Utils` and `GHCup.Utils.*`. Anything dealing with ghcup specific directories is in `GHCup.Utils.Dirs`. -Download information on where to fetch bindists from is in -`GHCup.Data.GHCupDownloads`. +Download information on where to fetch bindists from is in the appropriate +yaml files: `ghcup-.yaml`. + +## Common Tasks + +### Adding a new GHC version + +1. open the latest `ghcup-.yaml` +2. find the latest ghc version (in yaml tree e.g. `ghcupDownloads -> GHC -> 8.10.3`) +3. copy-paste it +4. adjust the version, tags, changelog, source url +5. adjust the various bindist urls (make sure to also change the yaml anchors) +6. run `cabal run exe:ghcup-gen -- check-tarballs -f ghcup-.yaml -u 'ghc-8\.10\.4'` ## Major refactors