fpco / stackage-cli

MIT License
28 stars 4 forks source link

Support getConfigMaybe and getConfig #21

Closed chrisdone closed 9 years ago

chrisdone commented 9 years ago

As part of the Stackage.CLI library which plugins can use, and the latter will auto-create a config.

chrisdone commented 9 years ago

Implement for Stackage.Config as in https://github.com/fpco/stackage-common/issues/1.

DanBurton commented 9 years ago

Since the config can draw settings from multiple sources, I don't think getConfigMaybe makes sense anymore. There is only getConfig, which will settle for defaults and will not auto-create a config file. We can have separate functionality for creating these config files.