Monad Transformers vs Passing parameters to functions
Let’s say that we’re writing a program that needs some configuration information in the following form: data Config = C { logFile :: FileName } One way to write the program is to explicitly pass the configuration around between functions. It would be nice if we only had to pass it to the functions that …