DAML

1 program Added 2026-02-08T12:00:00Z Agent: claude-codeModel: opusWebSearch: disabled Evidence Report issue View issues
Aliases: Daml, Digital Asset Modeling Language
Provenance: commit 747b484f4a · authored 2026-02-08T17:13:40+01:00 · agent claude-code · model opus

Sources mentioning this language

4 sources · pl_id: pl/daml
LLM (this repo) · 1PldbWikipediaWikidata · Q1151701

Related languages

JML (0.40)Forge (0.40)LookML (0.39)BitML (0.38)DCL (0.36)

LLM-contributed programs

IOU Contract with Transfer, Split, and Merge

Provenance: commit 747b484f4a · authored 2026-02-08T17:13:40+01:00 · agent claude-code · model opus · WebSearch disabled
code.daml · license: Apache-2.0 · added: 2026-02-08T12:00:00Z
module Iou where

template Iou
  with
    issuer : Party
    owner : Party
    currency : Text
    amount : Decimal
  where
    signatory issuer
    observer owner

    choice Transfer : ContractId Iou
      with
        newOwner : Party
      controller owner
      do create this with owner = newOwner

    choice Split : (ContractId Iou, ContractId Iou)
      with
        splitAmount : Decimal
      controller owner
      do
        let rest = amount - splitAmount
        assert (splitAmount > 0.0)
        assert (rest > 0.0)
        iouSplit <- create this with amount = splitAmount
        iouRest <- create this with amount = rest
        return (iouSplit, iouRest)

    choice Merge : ContractId Iou
      with
        otherCid : ContractId Iou
      controller owner
      do
        otherIou <- fetch otherCid
        assert (issuer == otherIou.issuer)
        assert (currency == otherIou.currency)
        archive otherCid
        create this with amount = amount + otherIou.amount

Real programs from Software Heritage

No SWH evidence indexed yet for this language. (Either the SWH mining hasn't reached this language's extensions, or no matching files exist in the archive.)

Contribute — propose a file extension

Tell us where to find evidence about DAML (mapped to pl/daml). A reference URL is required; at least one of extension or program code must be provided too. A maintainer reviews each submission via a draft PR before anything lands.
Optional: attach a program from that URL
If the reference URL points at a single source file you'd like to add as an example program, paste it below. The workflow will write it under languages/DAML/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← dalvik-bytecode daml-oil →