2010
DOI: 10.1007/978-3-642-17164-2_7
|View full text |Cite
|
Sign up to set email alerts
|

Liberal Typing for Functional Logic Programs

Abstract: We propose a new type system for functional logic programming which is more liberal than the classical Damas-Milner usually adopted, but it is also restrictive enough to ensure type soundness. Starting from Damas-Milner typing of expressions we propose a new notion of well-typed program that adds support for type-indexed functions, a particular form of existential types, opaque higher-order patterns and generic functions-as shown by an extensive collection of examples that illustrate the possibilities of our p… Show more

Help me understand this report

Search citation statements

Order By: Relevance

Paper Sections

Select...
3
1
1

Citation Types

0
9
0

Year Published

2010
2010
2014
2014

Publication Types

Select...
3
1
1

Relationship

5
0

Authors

Journals

citations
Cited by 5 publications
(9 citation statements)
references
References 24 publications
0
9
0
Order By: Relevance
“…This contrasts with [15], where we proposed another type system that breaks parametricity even further. In that work the instantiation of polymorphic type variables is allowed to be performed not only in opaque patterns but in any pattern of the program.…”
Section: Parametricitymentioning
confidence: 82%
See 1 more Smart Citation
“…This contrasts with [15], where we proposed another type system that breaks parametricity even further. In that work the instantiation of polymorphic type variables is allowed to be performed not only in opaque patterns but in any pattern of the program.…”
Section: Parametricitymentioning
confidence: 82%
“…This makes a big difference with another recent work [15] where we develop a type system that deliberately aims to go beyond Damas-Milner types by radically liberalizing the well-typedness conditions for FLP programs.…”
Section: Higher Order Patternsmentioning
confidence: 99%
“…In this way, the formalisms are relatively close and moving from one to another becomes technically more natural and comfortable. This applies also to some further developments of our setting that we have made so far, like the extension to higher order features given in (López-Fraguas et al 2008), the combination of semantics proposed in (López-Fraguas et al 2009a), or the application of let-rewriting as underlying formal notion of reduction for type systems in functional logic languages (López-Fraguas et al 2010b;López-Fraguas et al 2010a).…”
Section: Introductionmentioning
confidence: 87%
“…The program contains an overloaded function arb which is a nondeterministic generator, and its instance for booleans. It also contains a function arbL2 which returns a list of two elements of the In this paper we propose and evaluate a type-passing translation of type classes for FLP based on type-indexed functionsfunctions with a different behavior for different types [14]-and type witnesses-representations of types as data values-that is well-typed in a new liberal type system recently proposed for FLP [20]. The proposed translation is not integrated in the type checking phase as in [10,30], but it is a separated phase after type checking.…”
Section: Introductionmentioning
confidence: 99%
“…3. Although the broad idea of using such kind of translation is not a novelty [29], its concrete realization and the application to FLP, relying in a new type system [20], are new.…”
Section: Introductionmentioning
confidence: 99%