Get names for common types using typeclasses instead of reflection.
- libarary for Scala 3 (JS, JVM, and Native platforms)
"com.julianpeeters" %% "typename" % "0.2.0"
import typename.{NameOf, given}
val str: String = summon[NameOf[Some[Int]]].name
// str: String = "Some[Int]"