Reader. It's so common that the Haskell community has started rapidly embracing it as the wrapper for applications. You can have global and local
Readers, but we'll be focusing here on the global one for our application.
Env, but that can conflict with standard terminology for environment variables, which environment an application is running in (test, development, staging, production), and so on. We have opted to call this
Configs, just fields
Config.getpulls out a value from the
Config. It knows which value you want because of the expected constructor (
Web.Host) on the left side of the
Configrecord. The first step is to ensure that the type is unique to the application, wrapping common types in