configifier icon indicating copy to clipboard operation
configifier copied to clipboard

Support for TOML in config files?

Open ChristianSi opened this issue 9 years ago • 1 comments

Personally I don't like YAML very much, as it is overly complicated. Maybe it would make sense to add support for TOML which is a much more lightweight format?

Downside is that Haskell currently lacks an up-to-date and well-maintained TOML parser.

ChristianSi avatar Mar 04 '15 11:03 ChristianSi

Good idea. (Note though that the yaml package also reads json, but toml probably has advantages over both.)

I would implement this thusly:

  1. find a good-enough toml parser lib. (or write one.)
  2. extend data Source with another constructor ConfigFileToml.
  3. add a pattern in configify that translates toml into Aeson.Value, and then call parseConfigFile

I will do this as soon as I run out of ideas that I consider more important (currently: many (sorry :)). Pull requests are always welcome, of course

mf59816 avatar Mar 04 '15 11:03 mf59816