JonathanLorimer / cfg

Simple Haskell configuration library
MIT License
3 stars 0 forks source link

Add support for configuration defaults #10

Closed JonathanLorimer closed 1 year ago

JonathanLorimer commented 1 year ago

This most likely involves getting "Sources" to return Tree Text even in the face of missing keys, then handoff handling of missing values to the parser (which will inject the defaults). This probably also changes the way we want to handle Maybe's via the ValueParser instance (we may even want to just hand write a NestedConfig instance there). Should definitely document all this magic extensively.