daml/docs/source
Moritz Kiefer c2c0557970
Support complex patterns in DAML REPL (#5087)
* Support complex patterns in DAML REPL

Previously, we only supported simple variable patterns in DAML
repl. This PR extends this to support pretty much all patterns. The
main complexity here is in handling shadowing correctly but I’m
reasonably confident the solution here is sensible.

What doesn’t work properly yet is partial patterns. I’ve added a
comment describing the issue and a potential solution. Given that this
isn’t a regression apart from maybe a slightly worse error message, I
think it makes sense to merge this PR and fix that separately.

changelog_begin

- [DAML REPL - Experimental] You can now use more complex patterns in
  statements, e.g., ``(x,y) <- pure (1,2)``.

changelog_end

* Update compiler/damlc/daml-compiler/src/DA/Daml/Compiler/Repl.hs

Co-Authored-By: Andreas Herrmann <42969706+aherrmann-da@users.noreply.github.com>

* Update compiler/damlc/daml-compiler/src/DA/Daml/Compiler/Repl.hs

Co-Authored-By: Andreas Herrmann <42969706+aherrmann-da@users.noreply.github.com>

* Improve error messages

* update documentation

Co-authored-by: Andreas Herrmann <42969706+aherrmann-da@users.noreply.github.com>
2020-03-19 16:17:50 +00:00
..
app-dev GSG Application architecture diagram (#5017) 2020-03-18 08:39:00 +01:00
concepts Remove references to DA Ledgers, DA Platform and similar from docs (#4690) 2020-03-13 13:02:11 +01:00
daml sandbox: Fail to start if a time mode is not explicitly specified. (#5033) 2020-03-18 08:25:03 +00:00
daml2ts daml2ts : Simplify docs, use mapped types for enums. (#5044) 2020-03-17 16:27:46 +00:00
daml-integration-kit docs: new recommend path architecture documentation (#4795) 2020-03-09 12:15:37 +01:00
daml-repl Support complex patterns in DAML REPL (#5087) 2020-03-19 16:17:50 +00:00
daml-script sandbox: Fail to start if a time mode is not explicitly specified. (#5033) 2020-03-18 08:25:03 +00:00
deploy Support TLS in daml-helper (#4943) 2020-03-11 17:58:05 +01:00
examples update copyright notices to 2020 (#3939) 2020-01-02 21:21:13 +01:00
experimental update copyright notices to 2020 (#3939) 2020-01-02 21:21:13 +01:00
getting-started Follower terminology in the docs (#5067) 2020-03-19 12:00:09 +01:00
json-api Allocate party JSON API endpoint (#4991) 2020-03-13 14:06:08 -04:00
support Release 0.13.55 (#5058) 2020-03-18 11:53:57 +01:00
tools sandbox: Fail to start if a time mode is not explicitly specified. (#5033) 2020-03-18 08:25:03 +00:00
triggers sandbox: Fail to start if a time mode is not explicitly specified. (#5033) 2020-03-18 08:25:03 +00:00
upgrade rework daml_compile bazel rule (#5070) 2020-03-18 23:06:55 +00:00
index.rst lanugage:docs: include generated docs on docs.daml.com (#4924) 2020-03-10 18:46:54 +01:00