daml/compiler/daml-lf-tools
Martin Huschenbett 3ffa2232a9 Allow shadowing of type variables in DAML and DAML-LF (#1962)
* Allow shadowing of type variables in DAML and DAML-LF

We relax the DAML-LF type checker to allow for shadowing of type variables.
This does not need big changes since the substitution we use already avoids
name capture. The test for alpha equivalence converts to de Bruijn indices
on the fly and is hence not a problem either.

We inline type synonyms during the conversion from GHC Core to DAML-LF. This
requires alpha renaming. The cheapest way to get this, is to use the unique
names of type variables instead of their surface names.

This fixes #1915.

* Fix Scala test

* Relax memory constraints for bond-trading test
2019-07-03 08:57:43 +00:00
..
src/DA/Daml/LF Allow shadowing of type variables in DAML and DAML-LF (#1962) 2019-07-03 08:57:43 +00:00
BUILD.bazel Replace all occurrences of Tagged in DAML-LF AST with newtypes (#1289) 2019-05-21 16:19:57 +00:00