Skip to content

Hyphens in key names (dumper) #37

@jgm

Description

@jgm

I've been trying out dumping YAML from the structure we use to represent pandoc command-line options (with HsYAML-aeson).

I'm getting this:

abbreviations: null
ascii: false
"base-header-level": 1
"cite-method": Citeproc
etc.

Keys with hyphens are quoted. This isn't necessary in YAML, so the quotes are overkill and undesirable. Can the code that determines when a key name needs quoting be tweaked to make it less aggressive? (I could take a look if you point me to the right place in the code.)

I'm assuming this is an issue with HsYAML itself rather than HsYAML-aeson.

[EDIT: fixed YAML nomenclature]

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions