pith. sign in

arxiv: 1708.09158 · v1 · pith:74WLKIM3new · submitted 2017-08-30 · 💻 cs.PL

Type Safe Redis Queries: A Case Study of Type-Level Programming in Haskell

classification 💻 cs.PL
keywords typeredishaskelltype-leveldatabaseprogrammingvaluecannot
0
0 comments X
read the original abstract

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.

This paper has not been read by Pith yet.

discussion (0)

Sign in with ORCID, Apple, or X to comment. Anyone can read and Pith papers without signing in.