shapeless: Generic programming for Scala | This room deprecated in favour of #shapeless on the Typelevel Discord: https://discord.gg/bSQBZA3Ced
joroKr21 on main
Remove refinement from Witness.… Merge branch 'main' into witnes… Merge branch 'main' into witnes… and 2 more (compare)
joroKr21 on main
Update sbt to 1.7.1 Merge pull request #1263 from s… (compare)
joroKr21 on main
Update junit-plugin, junit-runt… Revert commit(s) ca4fe1de Merge branch 'main' into update… and 2 more (compare)
joroKr21 on main
Update sbt-scalajs, scalajs-com… Merge branch 'main' into update… Merge pull request #1260 from s… (compare)
joroKr21 on main
Update scala-compiler, scala-li… Merge pull request #1261 from s… (compare)
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
Aux
as much though, right? if parameters can depend on each other within lists
(implicit gen: Generic[A], foo: Foo[gen.Repr])