Haskell 中箭头的阐述
哪里是了解箭头的好地方? 理想情况下,我只是在寻找一个具有简洁定义的地方,其动机来自一些很好的例子,类似于瓦德勒对单子的阐述。
What would be a good place to go to understand arrows? Ideally, I am just looking for some place with a concise definition with motivation from some good examples, something similar to Wadler's exposition on monads.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我发现休斯的原始论文(“将单子概括为箭头”)相当容易理解。 您可以在此处阅读其旧草案。 它与原始论文有一些差异,这些差异在 Ross 的参考书目页面上有注释Patterson 自己的Arrows 概述。
I found Hughes' original paper ("Generalizing Monads to Arrows") to be fairly accessible. You can read an older draft of it here. It has some differences from the original paper, which are noted on the bibliography page of Ross Patterson's own overview of Arrows.
http://en.wikibooks.org/wiki/Haskell/Understanding_arrows
http://en.wikibooks.org/wiki/Haskell/Understanding_arrows
如果您从实践中学到的东西比理论学得更好,请尝试使用 HXT 进行 XML 操作,或 PArrows 用于一般解析。 它们都有以箭头为中心的 API。
If you learn better from practice than theory, try using HXT for XML manipulation, or PArrows for general parsing. They both have APIs centered around arrows.