2 ms·Newtype-style wrappers can solve that one at compile time, and do in other JVM languages.by lmm 7y agoNewtype-style wrappers can solve that one at compile time, and do in other JVM languages.lolive 7y agoAny web resource datailling that?lmm 7y agohttps://timperrett.com/2012/06/15/unboxed-new-types-within-scalaz7/ https://timperrett.com/2012/06/15/unboxed-new-types-within-s... is an old example (I wouldn't use scalaz these days but other libraries do the same thing).