Skip to main content

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

Module Snapshot

Lifecycle

Stable.

Notices

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.