Re:Functional programming jargon in plain English
by ratww on Monday July 04, 2022 @12:47PM
(#31979084)
Yes, this is what I mean. IO is contagious for reasons unrelated to it being a Monad.
Re:Functional programming jargon in plain English
by endgame on Monday July 04, 2022 @05:46PM
(#31982074)
I think that applicatives and monads feel more contagious than they really are, because at first people tend to write functions that consume values of type `f a` too readily. This is because it takes some time to become comfortable with `fmap` and friends, so the new Haskell programmer often doesn't write as many pure functions.
Then again, there are lots of monads, such as `Maybe` and `List`, where you can get values out. These aren't contagious at all.
I agree with you that this is a good thing. Effects show up in the type signature - and it's all about those effects and managing them.