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-scalajs, scalajs-com… (compare)
joroKr21 on main
Update scala-parser-combinators… (compare)
joroKr21 on main
Update junit-plugin, junit-runt… (compare)
joroKr21 on main
Update sbt to 1.8.2 (#1296) (compare)
joroKr21 on main
Fixed typo (#1295) (compare)
joroKr21 on main
Update slf4j-nop to 2.0.6 (#129… (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