Instances for Currency
massimosiani opened this issue · comments
Hi,
I often work with the java Currency
type, but wasn't able to find the basic instances for that, e.g. Show
and Eq
.
I also looked in the mouse
project.
Would them be a good fit somewhere?
Every time I ask "why don't we support ____" from java.*
, the answer is lacking support in Scala.js and/or Scala Native. Unless that's also the problem here, I see no reason not to support them.
Lack of support on JS/Native doesn't need to stop us. We can add the instances only for JVM, or add them for all platforms but test only on JVM.
Lack of support on JS/Native doesn't need to stop us. We can add the instances only for JVM, or add them for all platforms but test only on JVM.
Some times we found libraries that filled the gap, like scala-java-time in cats-time.
Actually there was a proposal to move cats-time
instances into Cats core.
@dhinojosa thanks for pointing me to squants, I'll play with it and see if it suits in our project.
Every time I ask "why don't we support ____" from
java.*
, the answer is lacking support in Scala.js and/or Scala Native. Unless that's also the problem here, I see no reason not to support them.