Closed jhb563 closed 3 years ago
Use Reader monad over our config
Many functions follow the pattern of ProgramConfig -> ... -> IO a. This changes them to instead use ReaderT IO ProgramConfig a. This provides more semantic clarity around the role of the Config, and simplifies many function calls.
ProgramConfig -> ... -> IO a
ReaderT IO ProgramConfig a
LGTM
Use Reader monad over our config
Many functions follow the pattern of
ProgramConfig -> ... -> IO a
. This changes them to instead useReaderT IO ProgramConfig a
. This provides more semantic clarity around the role of the Config, and simplifies many function calls.