A Specification for Typed Template Haskell

12/07/2021
by   Matthew Pickering, et al.
0

Multi-stage programming is a proven technique that provides predictable performance characteristics by controlling code generation. We propose a core semantics for Typed Template Haskell, an extension of Haskell that supports multi staged programming that interacts well with polymorphism and qualified types. Our semantics relates a declarative source language with qualified types to a core language based on the the polymorphic lambda calculus augmented with multi-stage constructs.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
08/06/2019

A Dependently Typed Multi-Stage Calculus

We study a dependently typed extension of a multi-stage programming lang...
research
11/02/2015

Z Specification for the W3C Editor's Draft Core SHACL Semantics

This article provides a formalization of the W3C Draft Core SHACL Semant...
research
07/16/2020

Probabilistic Programming Semantics for Name Generation

We make a formal analogy between random sampling and fresh name generati...
research
11/15/2021

Moebius: Metaprogramming using Contextual Types – The stage where System F can pattern match on itself (Long Version)

We describe the foundation of the metaprogramming language, Moebius, whi...
research
12/17/2019

Narrowing Down XML Template Expansion and Schema Validation

This work examines how much template instantiation can narrow down schem...
research
11/11/2020

Petr4: Formal Foundations for P4 Data Planes

P4 is a domain-specific language for programming and specifying packet-p...
research
03/06/2023

Using Spoofax to Support Online Code Navigation

Spoofax is a language workbench. A Spoofax language specification genera...

Please sign up or login with your details

Forgot password? Click here to reset