ACM Home Page
Please provide us with feedback. Feedback
Many holes in hindley-milner
Full text PdfPdf (179 KB)
Source
International Conference on Functional Programming archive
Proceedings of the 2008 ACM SIGPLAN workshop on ML table of contents
Victoria, BC, Canada
SESSION: Session 2 table of contents
Pages 59-68  
Year of Publication: 2008
ISBN:978-1-60558-062-3
Author
Sam Lindley  The University of Edinburgh, Edinburgh, Scotland Uk
Sponsors
SIGPLAN: ACM Special Interest Group on Programming Languages
ACM: Association for Computing Machinery
Publisher
ACM  New York, NY, USA
Bibliometrics
Downloads (6 Weeks): 4,   Downloads (12 Months): 33,   Citation Count: 0
Additional Information:

abstract   references   index terms   collaborative colleagues  

Tools and Actions: Request Permissions Request Permissions    Review this Article  
DOI Bookmark: Use this link to bookmark this Article: http://doi.acm.org/10.1145/1411304.1411313
What is a DOI?

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.


REFERENCES

Note: OCR errors may be found in this Reference List extracted from the full text article. ACM has opted to expose the complete List rather than only correct and linked references.

 
1
Thorsten Altenkirch, Conor McBride, and James McKinna. Why dependent types matter. Unpublished manuscript, April 2005. http://www.cs.nott.ac.uk/~txa/publ/ydtm.pdf.
2
 
3
James Cheney and Ralf Hinze. First-class phantom types. Technical Report TR2003-1901, Cornell University, July 2003. http://ecommons.library.cornell.edu/handle/1813/5614.
 
4
Ezra Cooper, Sam Lindley, Philip Wadler, and Jeremy Yallop. An idiom's guide to formlets. Technical Report EDI-INF-RR-1263, School of Informatics, University of Edinburgh, 2008a.
 
5
Ezra Cooper, Sam Lindley, Philip Wadler, and Jeremy Yallop. The essence of form abstraction, 2008b. http://groups.inf.ed.ac.uk/links/formlets.
6
 
7
 
8
Martin Elsman and Ken Friis Larsen. Typing XHTML web applications in ML. In PADL, pages 224--238, 2004.
9
 
10
 
11
Jacques Garrigue. Relaxing the value restriction. In FLOPS, pages 196--213, 2004.
 
12
13
 
14
 
15
16
 
17
Conor McBride. The derivative of a regular type is its type of one--hole contexts. Unpublished manuscript, 2001. http://strictlypositive.org/diff.pdf.
 
18
 
19
Anders Møller and Michael I. Schwartzbach. The design space of type checkers for XML transformation languages. In ICDT '05, January 2005.
20
21
 
22
 
23
 
24
 
25
26
27
28
 
29
 
30