【24h】

Type checking type classes

机译:类型检查类型类

获取原文

摘要

We study the type inference problem for a system with type classes as in the functional programming language Haskell. Type classes are an extension of ML-style polymorphism with overloading. We generalize Milner's work on polymorphism by introducing a separate context constraining the type variables in a typing judgement. This lead to simple type inference systems and algorithms which closely resemble those for ML. In particular we present a new unification algorithm which is an extension of syntactic unification with constraint solving. The existence of principal types follows from an analysis of this unification algorithm.

机译:

我们像函数编程语言Haskell一样研究具有类型类的系统的类型推断问题。类型类是带有重载的ML样式多态性的扩展。我们通过引入一个单独的上下文来约束类型判断中的类型变量,来概括米尔纳关于多态性的工作。这导致了简单的类型推断系统和算法,这些系统和算法与ML非常相似。特别是,我们提出了一种新的统一算法,它是句法统一与约束求解的扩展。通过对这种统一算法的分析,可以得出主体类型的存在。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号