pith. sign in

arxiv: 1806.03476 · v1 · pith:WB6I2XYXnew · submitted 2018-06-09 · 💻 cs.PL

Type variables in patterns

classification 💻 cs.PL
keywords typevariablespatternsextensionallowsbecomesbindbinding
0
0 comments X
read the original 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.

This paper has not been read by Pith yet.

discussion (0)

Sign in with ORCID, Apple, or X to comment. Anyone can read and Pith papers without signing in.