Free theorems involving type constructor classes: functional pearl
Free theorems involving type constructor classes: functional pearl
复制标题
涉及类型构造函数类的自由定理:函数珍珠
DOI:
10.1145/1596550.1596577
复制
发表时间:
2009
影响因子:
4.6
通讯作者:
J. Voigtländer
中科院分区:
文献类型:
--
作者:
J. Voigtländer
Free theorems are a charm, allowing the derivation of useful statements about programs from their (polymorphic) types alone. We show how to reap such theorems not only from polymorphism over ordinary types, but also from polymorphism over type constructors restricted by class constraints. Our prime application area is that of monads, which form the probably most popular type constructor class of Haskell. To demonstrate the broader scope, we also deal with a transparent way of introducing difference lists into a program, endowed with a neat and general correctness proof.
影响因子:
--
作者:
Danielsson N
通讯作者:
Danielsson N