A Foundation for Embedded Languages
DOI:
https://doi.org/10.7146/brics.v9i34.21749Abstract
Recent work on embedding object languages into Haskell use ``phantom types'' (i.e., parameterized types whose parameter does not occur on the right-hand side of the type definition) to ensure that the embedded object-language terms are simply typed. But is it a safe assumption that only simply-typed terms can be represented in Haskell using phantom types? And conversely, can all simply-typed terms be represented in Haskell under the restrictions imposed by phantom types? In this article we investigate the conditions under which these assumptions are true: We show that these questions can be answered affirmatively for an idealized Haskell-like language and discuss to which extent Haskell can be used as a meta-language.Downloads
Published
2002-08-05
How to Cite
Rhiger, M. (2002). A Foundation for Embedded Languages. BRICS Report Series, 9(34). https://doi.org/10.7146/brics.v9i34.21749
Issue
Section
Articles
License
Articles published in DAIMI PB are licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License.