Skip to content

Generic codec for Map should accept tables #428

@ncfavier

Description

@ncfavier
data Config = Config { foo :: Map Text Text } deriving Generic
foo = { "bar" = "baz" }
tomland decode error:  The following fields are present in TOML but not used:
[foo]
  "bar" = "baz"

There is no reason for this to fail, the intent is clear.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions