shapeless: Generic programming for Scala | This room deprecated in favour of #shapeless on the Typelevel Discord: https://discord.gg/bSQBZA3Ced
joroKr21 on main
Update sbt-mima-plugin to 1.1.0 Merge pull request #1258 from s… (compare)
joroKr21 on main
Update sbt-scalajs, scalajs-com… Merge pull request #1257 from s… (compare)
joroKr21 on v2.3.9
joroKr21 on 2.3
When case class has custom unap… Merge pull request #1256 from j… (compare)
joroKr21 on main
When case class has custom unap… Merge pull request #1255 from j… (compare)
A -> B
and A -> C
then by definition it's not a mapping
A ->
map to, at the type level?
B
or C
?
A -> B
and A -> C
, how is that a mapping?
Boolean
and the value "b" to the type Int
If I have a recursively-resolved typeclass like this:
trait Foo[A] {
type Repr
def to: Repr
}
With at most one instance for a given A
. Is there a way to write an instance summoner that looks something like this:
def instance[A](implicit foo: Foo.Aux[A,R]): R = ???
? And if so, will the compiler correctly infer the concrete type rather than some Foo.Aux…
type?
Foo[A].repr
for a given A
?
implicit def yo: Foo.Aux[A, Int]
implicit def yo: Foo[A]
won't work (that's what I meant by declaring things right)
Aux
is the best practice