Error: key "ghc" not found
Copied from: https://github.com/haskell/ghcup-hs/issues/1110
Any ghcup command I run, including ghcup upgrade
or ghcup tui
, shows the following output:
[ Info ] downloading: https://ghc.gitlab.haskell.org/ghcup-metadata/ghcup-nightlies-0.0.7.yaml as file /Users/bchinn/.ghcup/cache/ghcup-nightlies-0.0.7.yaml
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 606k 100 606k 0 0 964k 0 --:--:-- --:--:-- --:--:-- 963k
[ Error ] [GHCup-00160] JSON decoding failed with: Aeson exception:
[ ... ] Error in $: key "ghc" not found
[ ... ] Consider removing /Users/bchinn/.ghcup/cache/ghcup-nightlies-0.0.7.yaml manually.