Y
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
rowanG077
1032 days ago
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.
link
kccqzy
1032 days ago
That's not a problem in business logic heavy code. Requirements change and you could use previously unnecessary constraints at any time.
link