GADTs Meet Subtyping

Abstract : While generalized abstract datatypes are now considered well-understood, adding them to a language with a notion of subtyping comes with a few surprises. What does it mean for a GADT parameter to be covariant? The answer turns out to be quite subtle and involves new semantic properties of types that raise interesting design questions. We allow variance annotations in GADT definitions, present a sound and effective algorithm to check such declarations, and describe its application in a real-world language.
Document type :
Conference papers
Complete list of metadatas

Cited literature [3 references]  Display  Hide  Download

https://hal.inria.fr/hal-01093816
Contributor : Didier Rémy <>
Submitted on : Thursday, December 11, 2014 - 11:02:31 AM
Last modification on : Tuesday, November 20, 2018 - 11:06:03 PM
Long-term archiving on : Thursday, March 12, 2015 - 10:23:22 AM

File

Scherer-Remy:gadts-subtyping@m...
Files produced by the author(s)

Identifiers

  • HAL Id : hal-01093816, version 1

Collections

Citation

Gabriel Scherer, Didier Rémy. GADTs Meet Subtyping. ACM SIGPLAN Workshop on ML, Sep 2012, Copenhagen, Denmark. ⟨hal-01093816⟩

Share

Metrics

Record views

125

Files downloads

86