【24h】

Monads, Zippers and Views

机译:Monads,拉链和观点

获取原文

摘要

We make monadic components more reusable and robust to changes by employing two new techniques for virtualizing the monad stack: the monad zipper and monad views. The monad zipper is a higher-order monad transformer that creates virtual monad stacks by ignoring particular layers in a concrete stack. Monad views provide a general framework for monad stack virtualization: they take the monad zipper one step further and integrate it with a wide range of other virtualizations. For instance, particular views allow restricted access to monads in the stack. Furthermore, monad views provide components with a call-by-reference-ike mechanism for accessing particular layers of the monad stack. With our two new mechanisms, the monadic effects required by components no longer need to be literally reflected in the concrete monad stack. This makes these components more reusable and robust to changes.
机译:通过采用两个新技术,使Monadic组件更具可重复使用和强大的变化来改变Monad Stack:Monad拉链和Monad视图。 Monad拉链是一个高阶的Monad变压器,通过在混凝土堆叠中忽略特定的层来创建虚拟Monad堆栈。 Monad的观点为Monad Stack虚拟化提供了一般框架:他们将Monad拉链进一步迈出了一步,并将其与各种其他虚拟化集成。例如,特定视图允许限制对堆栈中的MONAD的限制访问。此外,Monad视图提供了具有逐个引用的组件 - IKE机制,用于访问MONAD堆栈的特定层。凭借我们的两种新机制,组件所需的修改不再需要在具体的Monad堆栈中反映。这使得这些组件更加可重复使用和变化。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号