milessabin / shapeless

Generic programming for Scala

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Consider exposing some methods for reuse in blackbox macros

Daenyth opened this issue · comments

I'm working on some macros for slick derivation right now, and I had a use case for some of the functions in generic. I wasn't able to invoke them directly, because they're defined as needing a whitebox macro, but I was able to use them by copy pasting them into a blackbox macro context.

It would be nice to split the trait that defines these into a blackbox version and a whitebox version, to allow blackbox macros to invoke the methods directly.

https://github.com/teikametrics/slick-macros/blob/88696d67bda871247d5b6c1fd36c9057b33a10ec/slick-macros/src/main/scala/slickmacros/AutoSlick.scala#L190-L227