Informatics Report Series


Report   

EDI-INF-RR-1262


Related Pages

Report (by Number) Index
Report (by Date) Index
Author Index
Institute Index

Home
Title:Many holes in Hindley-Milner
Authors: Samuel Lindley
Date:Jun 2008
Publication Type:Other Publication Status:Pre-print
Abstract:
We implement statically-typed multi-holed contexts in OCaml using an underlying algebraic datatype augmented with phantom types. Existing approaches require dynamic checks or more complex type systems. In order to support concatenation we use two type parameters to represent the number of holes in a context as the difference between two Peano numbers. In order to support plugging a context with contexts of different arity we introduce a datatype of lists of contexts of length n with a total of m holes. Further, we extend our representation to allow holes to be marked with additional type information. As an example, we use these marks to implement statically-typed multi-holed XHTML contexts. We take advantage of Garrigue s relaxed value restriction.
Links To Paper
1st Link
Bibtex format
@Misc{EDI-INF-RR-1262,
author = { Samuel Lindley },
title = {Many holes in Hindley-Milner},
year = 2008,
month = {Jun},
url = {http://homepages.inf.ed.ac.uk/slindley/papers/many-holes-draft2008.pdf},
}


Home : Publications : Report 

Please mail <reports@inf.ed.ac.uk> with any changes or corrections.
Unless explicitly stated otherwise, all material is copyright The University of Edinburgh