kowainik / tomland

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

[RFC] 'tomlExample' function #259

Open chshersh opened 4 years ago

chshersh commented 4 years ago

It would be nice to have a function where you give it a Codec and you get TOML example for this function.

I guess a simple (but will require to change a lot of code) solution would be to add an extra field codecExample of type a to the Codec type. Alternative solution: implement some typeclass like TomlSchema.