-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Description
cats-time
is a microlibrary that implements instances of kernel typeclasses, such as Show
, Ord
, Eq
, or Hash
, for the classes of the java.time
package. This package was introduced in version 8.0 of the JDK, in order to replace previous unsatisfactory classes (such as java.Date
), and was derived from joda-time
.
The proposal is that these files be merged into the kernel
package, and the cats-time
library archived.
Some considerations on this matter are as follows:
- Precedent: there is a trait of instances for
java.util.UUID
already inkernel
. java.time
is just as standard a library asOption
,Either
, so it is reasonable to also include its instances in the package.- Adding instances for a JDK-specific class would add a coupling between
cats
and the JVM platform specifically, but as mentioned that already happens withjava.util.UUID
. - This would make the
cats
kernel incompatible with JDK pre-8 versions. The existing instance forUUID
only adds incompatibility with pre-1.5 JDKs. Note that JDK 8 was released in March 2014, almost seven years ago, so I am not sure how farcats
retrocompatibility should go.
jhnsmth, DavidGregory084, bplommer, sloshy, Slakah and 1 more
Metadata
Metadata
Assignees
Labels
No labels