-
Notifications
You must be signed in to change notification settings - Fork 78
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
The toEncoding function is not used for YAML but is for JSON. #114
Comments
As
|
The ordering effect cannot be had using
|
Doc improvements are always welcome via a pull request. However, there's no way for the yaml package to take advantage of the |
I've seen code snippets where https://gist.github.com/tfausak/52e4560cbe175a84fd30?L25#file-ppy-hs-L26 I've tried this, setting |
In order to achieve this, I believe you'll need to use the |
To encode JSON and specify the field order or rename fields, there's a way to do this using
toEncoding
...This does not work when encoding to YAML ...
The yaml package docs mention the
toEncoding
function. Please add a note about this unexpected behaviour.Can the encoding to YAML be made to use the renames and reordering the way encoding to JSON does?
The text was updated successfully, but these errors were encountered: