ghcup-hs icon indicating copy to clipboard operation
ghcup-hs copied to clipboard

Create yaml schema

Open hasufell opened this issue 3 years ago • 3 comments

In GitLab by @maerwald on Oct 19, 2020, 18:15

hasufell avatar Oct 19 '20 10:10 hasufell

In GitLab by @maerwald on Oct 18, 2021, 17:32

unassigned @maerwald

hasufell avatar Oct 18 '21 09:10 hasufell

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".

tfausak avatar Jul 18 '23 11:07 tfausak

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

hasufell avatar Jul 18 '23 12:07 hasufell