reflection library does not solve the configuration problem - Haskell

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

rednaZ

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?

rednaZ

Annoyingly, I think I new the answer at some point and have since forgotten it.

Lysxia

The package was inspired from a paper (https://okmij.org/ftp/Haskell/tr-15-04.pdf) 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.