I don’t really follow. I suppose you’re being sarcastic here, but since I didn’t introduce the notion of “archiving repos” to this discussion it seems off-target. Are you disputing anything I said in my reply?
To be clear, I would recommend an “analytic” (IO-based) effect system over a “synthetic” one. Your realistic choices of analytic effect system in 2026 are:
Plain IO (advocated by the post under discussion here)
ReaderT _ IO/rio
effectful
Bluefin
All are reasonable choices, and each choice has its particular pluses and minuses. (N.B. ST is also an analytic effect system, but it is strictly less general that Bluefin)
In 2026, reasons to use mtl/transformers include:
You are working in a codebase that already uses them heavily
You need to work with a library that uses them
You are doing research in monads for programming language semantics
Off the top of my head I can’t think of another reason to use mtl/transformers. (But their prevalence in the ecosystem means that “their repos will not be archived” for a long time, maybe never.)
Earlier you said
they “need to keep effects under control”, then add MonadIO instance, and they don’t even see the problem
and I interpreted that to mean “there is a problem with using MonadIO”, but now it seems you’re saying “probably there is no issue” with MonadIO. Could you clarify, because I’m not able to understand the point you’re making.
I’ve reread the thread and the closest matches I could find were the following. Are they what you were referring to?
You don’t need Haskell either, and yet here I am
of course you don’t need an effect system. You also don’t need Haskell to write programs.
I tried to tell you that “archiving repos” was the context of the comment. You misinterpreted “nothing” in a way I never intended. And I clarified it multiple times in this thread. And no I’m not disputing anything you wrote about mtl - it’s totally irrelevant to my point.
Could you please stop recommending me effect systems? Because it sounds ridiculous. I mean, “no effect system” means no effect system at all, neither analytic, nor synthetic. Not even rio or mtl - just none.
Sure, I’m happy to clarify. The “problem” I was talking was not about MonadIO per se, but about affect system + MonadIO. I.e. if you want to “keep effects under control” and you have MonadIO at the same time, then you are probably not actually “keeping effects under control” in any meaningful way. My point was: if you didn’t notice this “problem” then probably you didn’t need to “keep effects under control” in the first place. I.e. if effects being “uncontrolled” didn’t cause any issue, then there might be no reason to control them.
But nothing problematic, right? Well, now I’m disappointed (not really.)
OK, then I’m sorry that I haven’t been able to understand your point.
Ah, my intention was not to recommend you an effect system. I was just stating my recommendation for anyone who is reading this thread now or in the future, and happens to be interested in what I have to say (if anyone).
If you’re happy with no effect system, that’s fine by me and I shan’t try to persuade you otherwise. My responses to you are not out of a wish to persuade you but out of a wish to share my point of view on something you have said, out of hope that doing so is useful to someone.
Well, I’m not so sure. That depends on how pervasive the occurrence of MonadIO is. At the extremes, if it occurs on every operation then I agree with you; it is not helping to “keep effects under control” i.e. to “make invalid behaviour unrepresentable”. If it occurs on one operation out of, say, one hundred, then perhaps it is?
You said:
So maybe you can point to some such code by way of example?
I don’t buy this line of argument. A million Python programmers every day “don’t notice” the “problem” of not keeping values under control using types, but that doesn’t make me feel less confident that I ought to use types when developing my own code.