commercialhaskell / rio

A standard library for Haskell
Other
836 stars 54 forks source link

Addition of `mkSimpleApp` and `lookupEnvFromContext`. Fix #208 #210

Closed lehins closed 4 years ago

lehins commented 4 years ago

@snoyberg I think lookupEnvVar would have been a more consistent name, considering that there are functions with names:

All of which operate on EnvVars in the ProcessContext, but do not mention it in the name. In fact lookupEnvFromContext will be the first function to have both Context (without Process) and Env (without Var) in its name.

That being said, I really don't care about it, just wanted to express this observation.

As always, let me know if there is anything you'd like me to change./