a little gem lurking in the magnolia docs: "however, there is the flexibility to provide additional type parameters or additional implicit parameters to the definition". Adding additional implicits lets you use other typeclasses in the derivation. @propensive
That's a bit more complicated, but it might work, with some effort. Derivation can take place in a type-dependent context. It's not exactly the same, but have a look at this example: https://github.com/propensive/magnolia/blob/master/examples/shared/src/main/scala/show.scala …
-
-
You inspired me to create this: https://gist.github.com/Krever/271282ae0cddaed019fc6eec99cc7455 … so it can be done! ... but 1) its to complicated imho 2) I had to cast ;/
-
I'd like to spend longer looking into this... and try to remove those casts. :)
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.