daml/compiler
Samir Talwar e1af564bcc
Switch from @silent to @nowarn. (#9498)
* Switch from `@silent` to `@nowarn`.

This annotation is native to Scala 2.12.13+ and 2.13.2+. It replaces
most usages of `@silent`.

I had to get creative about a couple of use cases that didn't work.
Specifically:

  1.  Suppressing deprecation warnings works, but Scala 2.12 erroneously
      complains that the `@nowarn` is unnecessary.  I had to suppress
      this warning too with `-Ywarn-unused:-nowarn`.
  2.  I can't seem to suppress the warning, "The outer reference in this
      type test cannot be checked at run time." Instead, I have
      refactored the code to remove the warning.

We still need to use the silencer plugin to suppress some warnings about
unused imports (because of compatibility between Scala 2.12 and 2.13),
but this means we no longer need the library, and therefore it is not a
transitive dependency that downstream consumers need to worry about.

CHANGELOG_BEGIN
CHANGELOG_END

* Add some comments around `@nowarn` support.

* language-support/scala: Fix a warning suppression.

* Revert to the default warnings.

Compatibility was complaining.
2021-04-26 19:46:14 +00:00
..
daml-extension Syntax highlighting for exceptions. (#9318) 2021-04-06 09:45:12 +01:00
daml-lf-ast Pattern matching for RoundingMode (#9381) 2021-04-13 15:47:16 +00:00
daml-lf-proto Pattern matching for RoundingMode (#9381) 2021-04-13 15:47:16 +00:00
daml-lf-reader Upgrade the LF library build setup (resolver, dependencies, version) (#8865) 2021-02-17 07:07:17 +01:00
daml-lf-tools LF: Add TO_TEXT_BIGNUMERIC (#9276) 2021-03-30 13:31:42 +02:00
daml-lf-verify LF: release LF 1.12 (#8856) 2021-02-24 21:17:33 +01:00
damlc Check visibility for by-key operation of local contracts (#9470) 2021-04-22 21:39:12 +02:00
ghcide Get ghcide from the new upstream repo (#2867) 2019-09-11 08:57:48 +02:00
hie-core Get ghcide from the new upstream repo (#2867) 2019-09-11 08:57:48 +02:00
lsp-tests ghcide: cached goto definitions (#8751) 2021-02-04 21:05:12 +01:00
repl-service Expose Daml stacktraces for Daml Script errors (#9025) 2021-03-04 16:13:50 +01:00
scenario-service Switch from @silent to @nowarn. (#9498) 2021-04-26 19:46:14 +00:00
README.md Daml case and logo (#8433) 2021-01-08 12:50:15 +00:00

Daml Compiler

This directory contains several libraries used by and the executable for the Daml compiler.

Libraries

  • daml-lf-ast: The Daml-LF AST and type checker.