pith. sign in

arxiv: 1610.04799 · v1 · pith:D56ZC6V7new · submitted 2016-10-15 · 💻 cs.PL

Trees That Grow

classification 💻 cs.PL
keywords datahaskellmachinerysyntactictypesabstractapproachdescribe
0
0 comments X
read the original abstract

We study the notion of extensibility in functional data types, as a new approach to the problem of decorating abstract syntax trees with additional sets of information. We observed the need for such extensibility while redesigning the data types representing Haskell abstract syntax inside GHC. Specifically, we describe our approach to the tree-decoration problem using a novel syntactic machinery in Haskell for expressing extensible data types. We show that the syntactic machinery is complete in that it can express all the syntactically possible forms of extensions to algebraic data type declarations. Then, we describe an encoding of the syntactic machinery based on the existing features in Glasgow Haskell Compiler(GHC).

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.