daml/libs-scala
Stephen Compall 2e671e4e5d
non-empty newtypes (#8516)
* non-empty newtypes

* an operation

* add some map/set operations and make everything compile on 2.12 and 2.13

* +-: and :-+, with compatibility layer; docs

* move to nonempty package; add aliases for cons/snoc; fix SeqOps aliases

* ensure 2.12 aliases are inferrable

* groupBy1 and toList, use to prove uniqueSets's invariants

* prove immutability first

* matching variance in aliases

* prove the return property of uniqueSets, and use the proof

* tests for NonEmpty API

* rename sci alias to imm

* move RefinedOps to more obvious location

* more docs

CHANGELOG_BEGIN
CHANGELOG_END

* remove unused imports

* illustrate the scala.collection.Seq problem

* ideas for extension

* tests for toF

* tests for +-:

* explain difference with OneAnd
2021-02-22 08:54:26 -05:00
..
adjustable-clock update copyright notices for 2021 (#8257) 2021-01-01 19:49:51 +01:00
auth-utils update copyright notices for 2021 (#8257) 2021-01-01 19:49:51 +01:00
build-info update copyright notices for 2021 (#8257) 2021-01-01 19:49:51 +01:00
concurrent Upgrade scalafmt and enable trailing commas (#8437) 2021-01-09 11:37:37 +01:00
contextualized-logging Improve logging in ledger API server [DPP-231] (#8676) 2021-02-15 11:45:49 +01:00
doobie-slf4j Add //libs-scala/doobie-slf4j and replace usages of jdkLogHandler (#8731) 2021-02-03 10:45:05 +00:00
flyway-testing Upgrade scalafmt and enable trailing commas (#8437) 2021-01-09 11:37:37 +01:00
gatling-utils More Scala 2.13 cleanup (#8855) 2021-02-16 09:39:16 +00:00
grpc-reverse-proxy Enhance grpc-test-utils and grpc-reverse-proxy to use Resources (#8606) 2021-01-25 13:27:48 +01:00
grpc-server-reflection-client Enhance grpc-test-utils and grpc-reverse-proxy to use Resources (#8606) 2021-01-25 13:27:48 +01:00
grpc-test-utils Enhance grpc-test-utils and grpc-reverse-proxy to use Resources (#8606) 2021-01-25 13:27:48 +01:00
grpc-utils Enhance grpc-test-utils and grpc-reverse-proxy to use Resources (#8606) 2021-01-25 13:27:48 +01:00
ports Upgrade scalafmt and enable trailing commas (#8437) 2021-01-09 11:37:37 +01:00
postgresql-testing resources: Remove the default factories. (#8645) 2021-01-27 15:56:29 +00:00
resources resources: Add Resource#transform, and mirror Resource#transform{,With} in ResourceOwner. (#8649) 2021-01-27 17:58:13 +00:00
resources-akka resources: Remove the default factories. (#8645) 2021-01-27 15:56:29 +00:00
resources-grpc Restrict extensibility of ServerResourceOwner (#8660) 2021-01-28 10:47:28 +00:00
scala-utils non-empty newtypes (#8516) 2021-02-22 08:54:26 -05:00
scalatest-utils Upgrade scalafmt and enable trailing commas (#8437) 2021-01-09 11:37:37 +01:00
timer-utils Upgrade scalafmt and enable trailing commas (#8437) 2021-01-09 11:37:37 +01:00