Skip to content

dhall-to-json: duplicate entries in an association list #2387

Open
@maxime-didier

Description

@maxime-didier

I was editing a dhall configuration file that generates various entries in an association list depending on its inputs, and I accidentally generated two entries with the same key. I only noticed it later when my changes were already in our staging environment.

My problem boils down to the fact that this snippet does not generate an error or a warning :

echo 'toMap { a = 1 } # toMap { a = 2 }' | dhall-to-json
# Output: { "a": 2 }

This is not a huge problem, but a warning would be nice.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions