计算机科学 > 程序设计语言
[提交于 2017年8月30日]
标题:Type Safe Redis Queries: A Case Study of Type-Level Programming in Haskell
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:Redis is an in-memory data structure store, often used as a database, with a Haskell interface Hedis. Redis is dynamically typed --- a key can be discarded and re-associated to a value of a different type, and a command, when fetching a value of a type it does not expect, signals a runtime error. We develop a domain-specific language that, by exploiting Haskell type-level programming techniques including indexed monad, type-level literals and closed type families, keeps track of types of values in the database and statically guarantees that type errors cannot happen for a class of Redis programs.
提交历史
来自:Tyng-Ruey Chuang[v1] 2017年8月30日 星期三 08:26:44 UTC