Type-checking multi-parameter type classes

被引:0
|
作者
Duggan, Dominic [1 ]
Ophel, John [2 ]
机构
[1] Department of Computer Science, Stevens Institute of Technology, Castle Point on the Hudson, Hoboken, NJ 07030, United States
[2] Department of Computer Science and Computer Engineering, La Trobe University, Bundoora, Vic. 3083, Australia
关键词
Algorithms - Problem solving - Recursive functions - Vectors;
D O I
10.1017/s0956796801004233
中图分类号
学科分类号
摘要
Type classes are a novel combination of parametric polymorphism and constrained types. Although most implementations restrict type classes to be single-parameter, the generalization to multi-parameter type classes has gained increasing attention. A problem with multiparameter type classes is the increased possibilities they introduce for ambiguity in inferred types, impacting their usefulness in many practical situations. A new type-checking strategy, domain-driven unifying resolution, is identified as an approach to solve these problems. Domaindriven unifying resolution is simple, efficient, and practically useful. However, even with severe restrictions on instance definitions, it is not possible to guarantee that type-checking with unifying resolution terminates. This is in contrast with the naive generalization of single parameter resolution strategies. Domain-driven unifying resolution is guaranteed to terminate if the type class constraints are satisfiable; however satisfiability is undecidable even with severe restrictions on instance definitions. These results shed some light on ambiguity problems with multi-parameter type classes.
引用
收藏
页码:133 / 158
相关论文
共 50 条
  • [41] Static type-checking for programs developed on the platform 1C:Enterprise
    Irkutsk State University, 1, K. Marx st., Irkutsk
    664003, Russia
    CEUR Workshop Proc., (101-111):
  • [42] A DENOTATIONAL APPROACH FOR TYPE-CHECKING IN OBJECT-ORIENTED PROGRAMMING-LANGUAGES
    IERUSALIMSCHY, R
    COMPUTER LANGUAGES, 1993, 19 (01): : 19 - 40
  • [43] Efficient asymmetric inclusion of regular expressions with interleaving and counting for XML type-checking
    Colazzo, D.
    Ghelli, G.
    Pardini, L.
    Sartiani, C.
    THEORETICAL COMPUTER SCIENCE, 2013, 492 : 88 - 116
  • [44] Checked Load: Architectural Support for Java']JavaScript Type-Checking on Mobile Processors
    Anderson, Owen
    Fortuna, Emily
    Ceze, Luis
    Eggers, Susan
    2011 IEEE 17TH INTERNATIONAL SYMPOSIUM ON HIGH-PERFORMANCE COMPUTER ARCHITECTURE (HPCA), 2011, : 419 - 430
  • [45] Marcinkiewicz multipliers and multi-parameter structure on Heisenberg (-type) groups .2.
    Muller, D
    Ricci, F
    Stein, EM
    MATHEMATISCHE ZEITSCHRIFT, 1996, 221 (02) : 267 - 291
  • [46] Noncommutative Multi-Parameter Subsequential Wiener-Wintner-Type Ergodic Theorem
    Sun, Mu
    Zhang, Yinmei
    AXIOMS, 2024, 13 (09)
  • [47] Undecidability of Type-Checking in Domain-Free Typed Lambda-Calculi with Existence
    Nakazawa, Koji
    Tatsuta, Makoto
    Kameyama, Yukiyoshi
    Nakano, Hiroshi
    COMPUTER SCIENCE LOGIC, PROCEEDINGS, 2008, 5213 : 478 - +
  • [48] Refactoring Delta-Oriented Product Lines to Enforce Guidelines for Efficient Type-Checking
    Damiani, Ferruccio
    Lienhardt, Michael
    LEVERAGING APPLICATIONS OF FORMAL METHODS, VERIFICATION AND VALIDATION: DISCUSSION, DISSEMINATION, APPLICATIONS, ISOLA 2016, PT II, 2016, 9953 : 579 - 596
  • [49] EXACT NUMBER OF POSITIVE SOLUTIONS FOR CLASSES OF MULTI-PARAMETER QUASILINEAR EQUATIONS
    Zhang, Xuemei
    Feng, Meiqiang
    JOURNAL OF NONLINEAR FUNCTIONAL ANALYSIS, 2016,
  • [50] WEAK-TYPE 1-1 BOUND FOR A MULTI-PARAMETER MAXIMAL FUNCTION
    Song, Hoyoung
    COLLOQUIUM MATHEMATICUM, 2024,