Closed endgame closed 3 months ago
After discussions with Brendan and also internally, this code has been published at https://github.com/bellroy/hs-botocore .
This prevents the copyright situation of files in this repo from becoming too complicated, and ensures that Bellroy gets appropriate credit for the work it paid for in developing this library. It also means that should the JSON parser become interesting enough for further development, it's clearly available under BSD3.
Brendan has been invited as a maintainer to ensure that he still has control of his project.
As part of #872, this PR adds a library to parse botocore
service-2.json
,waiters-2.json
andpaginators-1.json
files. They use a hand-written parser based on the newData.Aeson.Decoding.Tokens
provided by recent versions ofaeson
.Because the generator currently smooshes the aeson
Value
s of these three together before attempting parsing, this PR also includes separate parsers forService
,Waiters
, andPaginators
, so that we can load each type of file individually and then marshal them into the types currently used bygen
.Future work:
gen