4 ms·
1 - Why would you ever want to add a logger to a pure function? 2 - If you really, for some unknown reason, wants to do that, you can pass the logger as an arg
by marcosdumay 11y ago
1 - Why would you ever want to add a logger to a pure function?
2 - If you really, for some unknown reason, wants to do that, you can pass the logger as an argument to f2, and have it run inside the IO monad somewhere outside of that fragment. But really, read #1 first.
- tome 11y agoDid you reply to the wrong comment?
- marcosdumay 11y agoOps. I did.