arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2207.00852cs.PL
收藏

用Monoidal原函子构造函数式程序

On Structuring Functional Programs with Monoidal Profunctors

Alexandre Garcia de Oliveira, Mauro Jaskelioff, Ana Cristina Vieira de Melo

摘要:

我们研究monoidal profunctors作为一种工具,原因和结构纯函数程序从分类的角度来看,作为一个Haskell实现。从范畴的观点来看,我们把它们看作是原函子的某个么半群范畴中的么半群。我们研究了这类monoidal范畴的性质,构造并实现了自由monoidal原函子。我们研究的monoidal建设光学的关系,并介绍了一个有前途的推广的实施,我们说明通过引入有效的monoidal profunctors。

英文摘要:

We study monoidal profunctors as a tool to reason and structure pure functional programs both from a categorical perspective and as a Haskell implementation. From the categorical point of view we approach them as monoids in a certain monoidal category of profunctors. We study properties of this monoidal category and construct and implement the free monoidal profunctor. We study the relationship of the monoidal construction to optics, and introduce a promising generalization of the implementation which we illustrate by introducing effectful monoidal profunctors.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑