Type variables in patterns

4Citations
Citations of this article
18Readers
Mendeley users who have this article in their library.
Get full text

Abstract

For many years, GHC has implemented an extension to Haskell that allows type variables to be bound in type signatures and patterns, and to scope over terms. This extension was never properly specified. We rectify that oversight here. With the formal specification in hand, the otherwise-labyrinthine path toward a design for binding type variables in patterns becomes blindingly clear. We thus extend ScopedTypeVariables to bind type variables explicitly, obviating the Proxy workaround to the dustbin of history.

Cite

CITATION STYLE

APA

Eisenberg, R. A., Breitner, J., & Peyton Jones, S. (2018). Type variables in patterns. ACM SIGPLAN Notices, 53(7), 94–105. https://doi.org/10.1145/3242744.3242753

Register to see more suggestions

Mendeley helps you to discover research relevant for your work.

Already have an account?

Save time finding and organizing research with Mendeley

Sign up for free