tomland icon indicating copy to clipboard operation
tomland copied to clipboard

Generic codec for Map should accept tables

Open ncfavier opened this issue 2 years ago • 0 comments

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.

ncfavier avatar Aug 31 '23 15:08 ncfavier