Skip to content
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

Add support for yaml parsing/rendering. #2855

Merged
merged 3 commits into from
Jan 25, 2023
Merged

Add support for yaml parsing/rendering. #2855

merged 3 commits into from
Jan 25, 2023

Conversation

toots
Copy link
Member

@toots toots commented Jan 16, 2023

This PR adds support for YAML parsing. It uses the the yaml module, which has a great JSON<->Yaml equivalence.

Therefore, YAML parsing uses the same infrastructure as JSON parsing, i.e.:

  let yaml.parse (x : {
    bla: string,
    baz: float,
    key_with_methods: string,
    record: { a: float, b: string},
  }) = yaml

It would be nice to include this by default but, ala, the yaml module is using a libffi binding over the libyaml library and this would be adding a hard dependency on an external library..

TODO:

Fixes: #2853

@toots toots merged commit 8167d70 into main Jan 25, 2023
@toots toots deleted the yaml-support branch January 25, 2023 20:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature request: Ability to parse YAML files
1 participant