ghcup-hs
ghcup-hs copied to clipboard
Create yaml schema
In GitLab by @maerwald on Oct 19, 2020, 18:15
In GitLab by @maerwald on Oct 18, 2021, 17:32
unassigned @maerwald
I may be able to help with this. Can you point me to where the YAML is currently decoded? Using something like Autodocodec may get the schema "for free".
It's using fromJSON instances for:
https://github.com/haskell/ghcup-hs/blob/d143daeb9a021ac7bd9c1fc1999a057ebc673547/lib/GHCup/Types.hs#L65-L70
See https://github.com/haskell/ghcup-hs/blob/master/lib/GHCup/Types/JSON.hs
https://github.com/haskell/ghcup-hs/blob/d143daeb9a021ac7bd9c1fc1999a057ebc673547/lib/GHCup/Download.hs#L187-L192