kowainik / tomland

🏝 Bidirectional TOML serialization
https://kowainik.github.io/posts/2019-01-14-tomland
Mozilla Public License 2.0
120 stars 39 forks source link

[RFC] Codecs for items in order of their appearance #328

Open chshersh opened 4 years ago

chshersh commented 4 years ago

After using tomland on non-trivial use-cases, @vrom911 and I realized, that sometimes it's desirable to parse TOML items in order of their appearance. In tomland we have an intermediate data type, that represents such TOML, we only to write codecs for it. But I want to avoid is to duplicate all codecs for this new representation. So we may want to introduce a module like Toml.Codec.Sequential with some bridge codecs.