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

Generic codec for Map should accept tables #428

Open
ncfavier opened this issue Aug 31, 2023 · 0 comments
Open

Generic codec for Map should accept tables #428

ncfavier opened this issue Aug 31, 2023 · 0 comments

Comments

@ncfavier
Copy link

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.

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

No branches or pull requests

1 participant