Closed type families with overlapping equations
Closed type families with overlapping equations
复制标题
具有重叠方程的闭型族
DOI:
10.1145/2535838.2535856
复制
发表时间:
2014
期刊:
影响因子:
--
通讯作者:
Stephanie Weirich
中科院分区:
文献类型:
--
作者:
R. Eisenberg;Dimitrios Vytiniotis;Simon Peyton Jones;Stephanie Weirich
Open, type-level functions are a recent innovation in Haskell that move Haskell towards the expressiveness of dependent types, while retaining the look and feel of a practical programming language. This paper shows how to increase expressiveness still further, by adding closed type functions whose equations may overlap, and may have non-linear patterns over an open type universe. Although practically useful and simple to implement, these features go beyond conventional dependent type theory in some respects, and have a subtle metatheory.