首页> 外文会议>Programming Languages and Systems; Lecture Notes in Computer Science; 4279 >Principal Type Inference for GHC-Style Multi-parameter Type Classes
【24h】

Principal Type Inference for GHC-Style Multi-parameter Type Classes

机译:GHC样式多参数类型类的主要类型推断

获取原文
获取原文并翻译 | 示例

摘要

We observe that the combination of multi-parameter type classes with existential types and type annotations leads to a loss of principal types and undecidability of type inference. This may be a surprising fact for users of these popular features. We conduct a concise investigation of the problem and are able to give a type inference procedure which, if successful, computes principal types under the conditions imposed by the Glasgow Haskell Compiler (GHC). Our results provide new insights on how to perform type inference for advanced type extensions.
机译:我们观察到,多参数类型类与存在类型和类型注释的组合会导致主体类型的丢失和类型推断的不确定性。对于这些流行功能的用户来说,这可能是一个令人惊讶的事实。我们对问题进行了简要的调查,并能够给出类型推断过程,如果成功,则可以在格拉斯哥Haskell编译器(GHC)施加的条件下计算主体类型。我们的结果提供了有关如何对高级类型扩展执行类型推断的新见解。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号