Hostname: page-component-77f85d65b8-2tv5m Total loading time: 0 Render date: 2026-04-19T15:04:28.380Z Has data issue: false hasContentIssue false

Type-safe pattern combinators

Published online by Cambridge University Press:  01 March 2009

MORTEN RHIGER*
Affiliation:
The IT University of Copenhagen, Copenhagen, Denmark (e-mail: mir@itu.dk)
Rights & Permissions [Opens in a new window]

Abstract

Core share and HTML view are not available for this content. However, as you have access to this content, a full PDF is available via the 'Save PDF' action button.

Macros still haven't made their way into typed higher-order programming languages such as Haskell and Standard ML. Therefore, to extend the expressiveness of Haskell or Standard ML, one must express new linguistic features in terms of functions that fit within the static type systems of these languages. This is particularly challenging when introducing features that span across multiple types and that bind variables. We address this challenge by developing, in a step by step manner, mechanisms for encoding patterns and pattern matching in Haskell in a type-safe way.

Information

Type
Functional Pearls
Copyright
Copyright © Cambridge University Press 2008
Submit a response

Discussions

No Discussions have been published for this article.