# Data dependencies and operator fixity

**URL:** <https://forum.canton.network/t/data-dependencies-and-operator-fixity/4463>\
**Category:** App Development\
**Created:** [May 2, 2022, 1:14pm UTC](https://forum.canton.network/t/data-dependencies-and-operator-fixity/4463 "2022-05-02T13:14:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Matteo\_Limberto](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/matteo_limberto/32/2823_2.png) [@Matteo\_Limberto](https://forum.canton.network/u/Matteo_Limberto)\
**Post date:** [May 2, 2022, 1:14pm UTC](https://forum.canton.network/t/data-dependencies-and-operator-fixity/4463/1 "2022-05-02T13:14:08Z")

</div>

Hi,

Assume that a package `A` imports a package `B` as a dependency. `B` defines a new operator, as well as its fixity.

Is it correct to assume that the fixity of the operator is ignored in `A` when `B` is imported as a data dependency?

Background :

the expression [here](https://github.com/digital-asset/contingent-claims/blob/b3ed63679ccaa92020df6ee4102161ebfa77cbec/daml/ContingentClaims/Util/Recursion.daml#L79) fails to compile when [daml-ctl](https://github.com/digital-asset/daml-ctl) is imported as a dependency, but works fine if it is a data-dependency.

daml-ctl defines

- `&&&` as `infixr 3`
- `<<<` as `infixr 1`

Thank you,  
Matteo

---

<div class="post-metadata">

**Author:** ![akrmn](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/akrmn/32/2484_2.png) [@akrmn](https://forum.canton.network/u/akrmn)\
**Post date:** [May 2, 2022, 2:17pm UTC](https://forum.canton.network/t/data-dependencies-and-operator-fixity/4463/2 "2022-05-02T14:17:12Z")

</div>

Hi @Matteo_Limberto, thanks for bringing this up. Your assumption is correct, but shouldn’t be 🙂 What’s happening is that `.dar`s (currently) do not preserve fixity information, so when the compiler sees the operators it just assumes they are `infixl 9` by default.

I’ve opened [[Data Dependencies should preserve fixity information · Issue #13763 · digital-asset/daml · GitHub](https://github.com/digital-asset/daml/issues/13763)] to track this. Please note that any fix to this will only work for newly produced `.dar` files, so if your program relies on the fixity of operators defined in a data-dependency, this data-dependency will need to be recompiled into a `.dar` that does have the fixity information.
