TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Haskell Mini-Patterns Handbook

328 点作者 gluegadget将近 5 年前

10 条评论

whateveracct将近 5 年前
This is great. I can say I&#x27;ve used and encountered literally all of these techniques many times in every Haskell codebase I&#x27;ve joined and built.<p>The concise cost&#x2F;benefit analysis very helpful.
misja111将近 5 年前
This is a gem. I have been looking for this kind of clear and to the point explanations of common Haskell patterns for a long time.
chrischen将近 5 年前
These patterns are not only applicable to Haskell but FP and programming in general. I am using them with a Typescript codebase.
mlazos将近 5 年前
This is a great post, I’ve seen a lot of those patterns before and it’s nice to have them in one place! One criticism I have though is I’m not sure about the advantage of phantom types, it seems like boilerplate to me. I feel like generalized algebraic data types are a strictly better pattern to follow to solve the issue of restricting type variable bindings to specific types.
评论 #24208641 未加载
评论 #24213546 未加载
评论 #24208314 未加载
jbawn将近 5 年前
Thanks for this. The tasks are a nice touch!
hackingthenews将近 5 年前
Anyone else have trouble with the page on firefox? I get a giant &quot;kowainik&quot; written on the forefront of the page, and I don&#x27;t know how to close it.
评论 #24203855 未加载
评论 #24208610 未加载
评论 #24206117 未加载
评论 #24203893 未加载
评论 #24204391 未加载
johnisgood将近 5 年前
I do not write Haskell, but this is a neat site.
gowld将近 5 年前
This is a beautiful start but much more content. Send PRs to kowainik.
johndoe42377将近 5 年前
The most deadly sin with Haskell is introducing unnecessary redundant abstractions to impress other people.<p>Imagine aircraft engineers will do that.<p>Up to (but not including) NonEmpty lists everything was fine.
评论 #24208515 未加载
评论 #24224736 未加载
评论 #24208603 未加载
glutamate将近 5 年前
The whole &quot;this code is problematic because... &quot; section on Boolean blindness reminds me of the worst caricatures of left-wing narratives of oppression based on PhD-level Critical Theory.<p>Look, a lot of the other patterns are interesting but I really think that if you are getting into criticising code because it has &quot;Boolean blindness&quot; you are probably getting a bit lost in navel gazing. Do you really have nothing better to do?
评论 #24208764 未加载
评论 #24206041 未加载
评论 #24205150 未加载
评论 #24204688 未加载
评论 #24204764 未加载
评论 #24203971 未加载
评论 #24205022 未加载
评论 #24204103 未加载