计算机科学 > 程序设计语言
[提交于 2018年6月12日]
标题:Type variables in patterns
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要: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.
提交历史
来自:Joachim Breitner[v1] 2018年6月12日 星期二 00:00:00 UTC