# DAML-LF spec

**URL:** <https://forum.canton.network/t/daml-lf-spec/692>\
**Category:** App Development\
**Created:** [June 19, 2020, 4:34pm UTC](https://forum.canton.network/t/daml-lf-spec/692 "2020-06-19T16:34:03Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![oggy](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/oggy/32/109_2.png) [@oggy](https://forum.canton.network/u/oggy)\
**Post date:** [June 19, 2020, 4:34pm UTC](https://forum.canton.network/t/daml-lf-spec/692/1 "2020-06-19T16:34:03Z")

</div>

There’s a spec for DAML-LF that includes the syntax, the typing rules, and the semantics of the LF language here:

> <https://github.com/digital-asset/daml/blob/8ee7de78ef47df8cbeee9e2725cb36a44ca3fa8f/daml-lf/spec/daml-lf-1.rst>

It appears quite well maintained, but it’s not included in the SDK docs. Is it because it’s deemed too technical?

---

<div class="post-metadata">

**Author:** ![Shaul](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/shaul/32/117_2.png) [@Shaul](https://forum.canton.network/u/Shaul)\
**Post date:** [June 19, 2020, 10:04pm UTC](https://forum.canton.network/t/daml-lf-spec/692/2 "2020-06-19T22:04:46Z")

</div>

It’s not so much that it’s too technical, rather that it caters to a different audience than the SDK docs.

The SDK docs are mainly oriented towards a user of the DAML SDK, whereas most users will not need to read the LF spec in order to build a DAML app.

---

<div class="post-metadata">

**Author:** ![oggy](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/oggy/32/109_2.png) [@oggy](https://forum.canton.network/u/oggy)\
**Post date:** [June 22, 2020, 8:24am UTC](https://forum.canton.network/t/daml-lf-spec/692/3 "2020-06-22T08:24:18Z")

</div>

Absolutely, for most users the [language reference docs](https://docs.daml.com/daml/reference/) and, to a lesser extent, the [link to the ledger model](https://docs.daml.com/concepts/ledger-model/ledger-daml.html) should be more than enough. Not including it in the docs makes it hard to discover for the handful of people who might need it, though.

---

<div class="post-metadata">

**Author:** ![Sofia\_Faro](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/sofia_faro/32/168_2.png) [@Sofia\_Faro](https://forum.canton.network/u/Sofia_Faro)\
**Post date:** [July 1, 2020, 11:22am UTC](https://forum.canton.network/t/daml-lf-spec/692/4 "2020-07-01T11:22:56Z")

</div>

Perhaps we should add a link to the DAML LF spec from the docs. Maybe from this page, since it already gets a bit technical about how DAML maps to DAML-LF: [https://docs.daml.com/app-dev/daml-lf-translation.html](https://docs.daml.com/app-dev/daml-lf-translation.html)

What do you think?

---

<div class="post-metadata">

**Author:** ![oggy](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/oggy/32/109_2.png) [@oggy](https://forum.canton.network/u/oggy)\
**Post date:** [July 1, 2020, 4:22pm UTC](https://forum.canton.network/t/daml-lf-spec/692/5 "2020-07-01T16:22:32Z")

</div>

I agree it’s on the appropriate “technical” level, but it feels a bit odd to stuff this under the headline of “How DAML types are translated to LF”. How about here:  
[https://docs.daml.com/app-dev/ledger-api.html#daml-lf-intro](https://docs.daml.com/app-dev/ledger-api.html#daml-lf-intro)  
and here:  
[https://docs.daml.com/concepts/ledger-model/ledger-daml.html](https://docs.daml.com/concepts/ledger-model/ledger-daml.html)  
?
