Complete documentation page mirrored and translated for learning. Attribution is shown at the bottom of each article.

阅读中文版

appdevreferencedaml-standard-libraryda-stack

DA.Stack

Documentation Index

Fetch the complete documentation index at: https://docs.canton.network/llms.txt Use this file to discover all available pages before exploring further.

DA.Stack

Reference documentation for Daml module DA.Stack.

DA.Stack

Module Snapshot

Stable. Status: `active` Introduced in: `3.4.9` Removed in: `-` Warnings: `0` Deprecations: `0` Deprecated since: `-`

Data Types

data SrcLoc

Location in the source code.

Line and column are 0-based.

Constructors:

  • SrcLoc | Field | Type | Description | | :---- | :--- | :---------- | | srcLocPackage | Text | | | srcLocModule | Text | | | srcLocFile | Text | | | srcLocStartLine | Int | | | srcLocStartCol | Int | | | srcLocEndLine | Int | | | srcLocEndCol | Int | |

Instances:

  • instance GetField srcLocEndCol SrcLoc Int
  • instance GetField srcLocEndLine SrcLoc Int
  • instance GetField srcLocFile SrcLoc Text
  • instance GetField srcLocModule SrcLoc Text
  • instance GetField srcLocPackage SrcLoc Text
  • instance GetField srcLocStartCol SrcLoc Int
  • instance GetField srcLocStartLine SrcLoc Int
  • instance SetField srcLocEndCol SrcLoc Int
  • instance SetField srcLocEndLine SrcLoc Int
  • instance SetField srcLocFile SrcLoc Text
  • instance SetField srcLocModule SrcLoc Text
  • instance SetField srcLocPackage SrcLoc Text
  • instance SetField srcLocStartCol SrcLoc Int
  • instance SetField srcLocStartLine SrcLoc Int

Functions

prettyCallStack

prettyCallStack : CallStack -> Text

Pretty-print a CallStack.

getCallStack

getCallStack : CallStack -> [(Text, SrcLoc)]

Extract the list of call sites from the CallStack.

The most recent call comes first.

callStack

callStack : HasCallStack => CallStack

Access to the current CallStack.


Mirrored from Canton Network official documentation (CC-BY-4.0) by CC Privacy Club for learning purposes.