Stitch: the sound type-indexed type checker (functional pearl)
Stitch: the sound type-indexed type checker (functional pearl)
复制标题
针迹:音型索引型格子(功能性珍珠)
DOI:
10.1145/3406088.3409015
复制
发表时间:
2020
期刊:
影响因子:
--
通讯作者:
Eisenberg, Richard A.
中科院分区:
文献类型:
--
作者:
Eisenberg, Richard A.
A classic example of the power of generalized algebraic datatypes (GADTs) to verify a delicate implementation is the type-indexed expression AST. This functional pearl refreshes this example, casting it in modern Haskell using many of GHC's bells and whistles. The Stitch interpreter is a full executable interpreter, with a parser, type checker, common-subexpression elimination, and a REPL. Making heavy use of GADTs and type indices, the Stitch implementation is clean Haskell code and serves as an existence proof that Haskell's type system is advanced enough for the use of fancy types in a practical setting. The paper focuses on guiding the reader through these advanced topics, enabling them to adopt the techniques demonstrated here.
登录
查看更多内容
DOI:
--
发表时间:
2002
期刊:
影响因子:
--
作者:
S. Jones;Mark Shields
通讯作者:
Mark Shields
DOI:
--
发表时间:
2013
期刊:
影响因子:
--
作者:
Adam Gundry
通讯作者:
Adam Gundry
影响因子:
2.3
作者:
José Pedro Magalhães;A. Dijkstra;J. Jeuring;Andres Löh
通讯作者:
Andres Löh
DOI:
--
发表时间:
2018
期刊:
影响因子:
--
作者:
Matthías Páll Gissurarson
通讯作者:
Matthías Páll Gissurarson
DOI:
--
发表时间:
2012
期刊:
Workshop on Generic Programming
影响因子:
--
作者:
José Pedro Magalhães
通讯作者:
José Pedro Magalhães