configifier
configifier copied to clipboard
Support for TOML in config files?
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.
Good idea. (Note though that the yaml
package also reads json, but toml probably has advantages over both.)
I would implement this thusly:
- find a good-enough toml parser lib. (or write one.)
- extend
data Source
with another constructorConfigFileToml
. - add a pattern in
configify
that translates toml intoAeson.Value
, and then callparseConfigFile
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