Hacker News new | ask | show | jobs
by kccqzy 1032 days ago
And what's wrong with the kitchen sink monad pattern? I've certainly used exactly that. And I have no problems with it.
1 comments

Because your code is very much overconstrained at that point. For the same reason you don't add a `Num a` constraint to list `head` function. You have now essentially fused your function to your codebase.
That's not a problem in business logic heavy code. Requirements change and you could use previously unnecessary constraints at any time.