daml/compiler/daml-lf-ast
Remy 1afb7cd8c1
[Daml] Handle new Numeric builtins more nicely (#17133)
* [Daml] integrate more nicely new Numeric builtin

In this PR, we rewrite the changes from #16852 without changing Daml
stdlib signature (we just add more constraint on type) and handle
properly Additive and Multiplicative type class form Numeric that was
not handle at all.

* fix BENumericOne

* fix KindChecking test

* Apply suggestions from code review

Co-authored-by: Samuel Williams <samuel.williams@digitalasset.com>
Co-authored-by: dylant-da <106664681+dylant-da@users.noreply.github.com>

* fix fix

* make DAML_NAT_TYPE_ERASURE LF2-only

---------

Co-authored-by: Samuel Williams <samuel.williams@digitalasset.com>
Co-authored-by: dylant-da <106664681+dylant-da@users.noreply.github.com>
Co-authored-by: Paul Brauner <paul.brauner@digitalasset.com>
2023-12-11 15:26:07 +01:00
..
src/DA/Daml/LF [Daml] Handle new Numeric builtins more nicely (#17133) 2023-12-11 15:26:07 +01:00
test/DA/Daml/LF/Ast Make LF v2 non backwards-compatible with LF v1 in the compiler (#17492) 2023-10-11 11:40:17 +02:00
BUILD.bazel Add test generator for keeping Cabal files in sync (#16864) 2023-05-23 10:00:02 +01:00
daml-lf-ast.cabal Make LF v2 non backwards-compatible with LF v1 in the compiler (#17492) 2023-10-11 11:40:17 +02:00