2006 · 18 citations · 15 references
ComputingComputer ScienceFormal MethodsProgramming LanguagesSyntaxData TypesModule SystemsRecursion TheoryType CheckingType SystemsAbstractionAbstraction MechanismsModular ProgrammingModule SemanticsParameterized ModulesRecursive Module DesignRecursive ModulesRecursive Types
TheML module system is useful for building large-scale programs. The programmer can factor programs into nested and parameterized modules, and can control abstraction with signatures. Yet ML prohibits recursion between modules. As a result of this constraint, the programmer may have to consolidate conceptually separate components into a single module, intruding on modular programming. Introducing recursive modules is a natural way out of this predicament. Existing proposals, however, vary in expressiveness and verbosity. In this paper, we propose a type system for recursive modules, which can infer their signatures. Opaque signatures can also be given explicitly, to provide type abstraction either inside or outside the recursion. The type system is decidable, and is sound for a call-by-value semantics. We also present a solution to the expression problem, in support of our design choices.
15
A type-theoretic approach to higher-order modules with sharing
Robert Harper, Mark Lillibridge · 1994 · 291 citations · Full text
David MacQueen · 1984 · 270 citations · Full text
Manifest types, modules, and separate compilation
Xavier Leroy · 1994 · 260 citations · Full text
Higher-order modules and the phase distinction
Robert Harper, John C. Mitchell, Eugenio Moggi · 1990 · 156 citations
Applicative functors and fully transparent higher-order modules
Xavier Leroy · 1995 · 140 citations · Full text
Computing, Computer Science, Algebra +16