daml/compiler
Martin Huschenbett 0fdf85442f
Improve UX of generic templates over Ledger API (#2779)
* Improve UX of generic templates over Ledger API

Currently, if you write
```
template Template t => Proposal t with
    receiver: Party
    asset: t
  where ...
template Iou with ...
template instance ProposalIou = Proposal Iou
```
you'll get the following DAML-LF types:
```
record Proposal t = { receiver : Party, asset : t }
record Iou = ...
record ProposalIou = { unpack : Proposal Iou }
```
The definition of `ProposalIou` is not particularly user friendly when used
over the Ledger API.

This PR changes the definition of `ProposalIou` to
```
record ProposalIou = { receiver : Party, asset : Iou }
```
Basically, the definition of `Proposal` is copied and `t` is instantiated
with `Iou`. This should make a much nicer UX.

* Update documentation

* Add test

* Fix docs examples

* Fix release notes
2019-09-10 14:38:25 +02:00
..
daml-extension Visual integration with LSP (#2597) 2019-08-26 15:47:29 +00:00
daml-lf-ast Rename hazel_deps to hackage_deps (#2789) 2019-09-06 09:01:09 +00:00
daml-lf-proto Rename hazel_deps to hackage_deps (#2789) 2019-09-06 09:01:09 +00:00
daml-lf-reader Rename hazel_deps to hackage_deps (#2789) 2019-09-06 09:01:09 +00:00
daml-lf-tools Rename hazel_deps to hackage_deps (#2789) 2019-09-06 09:01:09 +00:00
daml-licenses update copyright notices (#2499) 2019-08-13 17:23:03 +01:00
damlc Improve UX of generic templates over Ledger API (#2779) 2019-09-10 14:38:25 +02:00
ghcide ghcide: support hs-boot files (#2827) 2019-09-10 11:35:52 +02:00
hie-core Rename hie-core to ghcide (#2820) 2019-09-09 13:55:16 +00:00
lsp-tests Rename hie-core to ghcide (#2820) 2019-09-09 13:55:16 +00:00
scenario-service Rename hazel_deps to hackage_deps (#2789) 2019-09-06 09:01:09 +00:00
README.md open-sourcing daml 2019-04-04 09:33:38 +01:00

DAML Compiler

This directory contains several libraries used by and the executable for the DAML compiler.

Libraries

  • daml-lf-ast: The DAML-LF AST and type checker.