You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Configuration via environment variables
The implementation is simple and relatively easy to deal with for deployment, docker etc., but maybe not as convenient and popular as file-based configuration.
Configuration loading is done in a simple Maybe monad, so there is no reporting on failures.
Any kind of error in the configuration just yields an "invalid configuration" message and won't start.
Possible solutions:
use a configuration library: probably file-based format (ini, json, yaml?), easy to deal with, built-in error handling
use an something like ExceptT instead of `MaybeT'
The text was updated successfully, but these errors were encountered:
Problems:
Configuration via environment variables
The implementation is simple and relatively easy to deal with for deployment, docker etc., but maybe not as convenient and popular as file-based configuration.
Configuration loading is done in a simple
Maybe
monad, so there is no reporting on failures.Any kind of error in the configuration just yields an "invalid configuration" message and won't start.
Possible solutions:
ExceptT
instead of `MaybeT'The text was updated successfully, but these errors were encountered: