reflection library does not solve the configuration problem - Haskell

Welcome to the Functional Programming Zulip Chat Archive. You can join the chat here.


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 ( which says, among other things:

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.