I'm sure someone has had that problem before: I have a whitebox macro that takes a type constructor. In the macro, all I see is just an `F[_]`. I need to see the concrete type. Can I do that?
-
Show this thread
-
If the macro takes just a simple type, and it is triggered in a context where the type is known, I see the concrete type. Doesn't seem to be the case for type constructors.
1 reply 0 retweets 0 likesShow this thread -
To clarify: Let's say I call the macro with `List`. Inside the macro, if I print the type tag, I just get `F`, not `List`. /cc
@milessabin3 replies 0 retweets 0 likesShow this thread -
Hmm, maybe this is not a problem. But if I try to apply that `F` to an argument, I get Any does not take type parameters
2 replies 0 retweets 0 likesShow this thread
How are you capturing the WeakTypeTag typeclass instance on a type constructor? I usually make type constructors into existential proper types when calling a macro...
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.