How does the reflection library solve the configuration problem any better than a manually passing an additional function argument everywhere considering that a proxy argument has to be passed everywhere too?
The most obvious solution is to pass all needed parameters explicitly as function arguments. (...) An obvious drawback of this solution is that many computations depend on many parameters, and passing a multitude of positional arguments is error-prone.
How does the
reflection
library solve the configuration problem any better than a manually passing an additional function argument everywhere considering that a proxy argument has to be passed everywhere too?Annoyingly, I think I new the answer at some point and have since forgotten it.
The package was inspired from a paper (https://okmij.org/ftp/Haskell/tr-15-04.pdf) which says, among other things: