mirror of
https://github.com/digital-asset/daml.git
synced 2024-11-10 10:46:11 +03:00
d937a5ebad
* Track source locations on Daml.Script.submit Adds a `HasCallStack` constraint on `HasSubmit.submit` and `HasSubmit.submitMustfail`. We need to move the definition of `HasCallStack` to `GHC.Stack.Types` to avoid a cyclic dependency between `DA.Stack` and `DA.Internal.LF`. Alternatively, we could inline `HasCallStack` in `DA.Internal.LF` but it seems preferable to use the alias on the signature of `submit(MustFail)`. We need to adapt the type of the builtins for scenario `submit` and `submitMustfail`. changelog_begin changelog_end * Test-case for scenario/script source locations * Test second commit with intermediate definition Addressing review comment https://github.com/digital-asset/daml/pull/7252/files#r478518834 * Store the full callstack on submit For forwards compatibility. Addressing review comment https://github.com/digital-asset/daml/pull/7252/files#r478520268 * Document unused location definition Addressing review commit https://github.com/digital-asset/daml/pull/7252/files#r478522373 * Make user facing `SrcLoc` zero based Following LSP precedent rather than GHC Addressing review comment https://github.com/digital-asset/daml/pull/7252/files#r478529138 * Add comment for backwards compatibility code Addressing review comment https://github.com/digital-asset/daml/pull/7252/files#r478529138 * fmt Co-authored-by: Andreas Herrmann <andreas.herrmann@tweag.io> |
||
---|---|---|
.. | ||
src | ||
BUILD.bazel |