-
Notifications
You must be signed in to change notification settings - Fork 211
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix dhall-json
for new Prelude.JSON.Type
#1631
Conversation
dhall-lang/dhall-lang#873 changed `Prelude.JSON.Type` which requires matching changes to `dhall-json` to support encoding/decoding Dhall expressions of that type. We still support the old type, too.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! I had totally forgotten about adapting this code!
@@ -590,6 +590,77 @@ dhallFromJSON (Conversion {..}) expressionType = | |||
|
|||
return result | |||
|
|||
-- Arbitrary JSON ~> https://prelude.dhall-lang.org/JSON/Type (v13.0.0 <=) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! I hadn't realized that json-to-dhall
supports this at all!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, this is documented here: https://github.com/Gabriel439/dhall-manual/blob/a0b4ceb9fead3ba151fc28f3b389573493b66f6b/manuscript/01-YamlToDhall.md
Regarding the Hydra failure, I suspect you need to enhance some |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cheers! :)
... based on an issue caught by @NicolasT
dhall-lang/dhall-lang#873 changed
Prelude.JSON.Type
which requires matching changes todhall-json
to support encoding/decoding Dhall expressions of that type. We
still support the old type, too.