-
Notifications
You must be signed in to change notification settings - Fork 533
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
unwrap tag (tagged) #538
unwrap tag (tagged) #538
Conversation
Can you add a test similar to https://github.com/etaty/shapeless/blob/features/tagged-unwrap/core/src/test/scala/shapeless/unwrapped.scala#L109 ? I'm concerned about whether it will pass. |
Yep good catch. |
that's weird, I am curious for the reason why it keeps the tagged type. |
It's because e.g. |
Also, the version of this in your PR actually leaves off the maybe-important feature of being able to see through multiple wrappers over the same type. This is the purpose of all of those |
What's the status of this? I'm aiming for an RC1 before the end of the week and it'd be nice if we could get this in by then. |
Hi Miles, |
No worries ... if you'd like to work on this I'll punt it to 2.3.1? |
Moved to 2.3.1 ... |
Just got around to checking how easy it is to define an untagger with Miles's higher order unification patch (scala/scala#5102). It's pretty easy, I think: https://gist.github.com/clhodapp/a2f1b6fc011df9b60b107bd3034aef6d |
Actually, that technique seems to work even without higher order unification! |
Do either or both of you have time to try and get this over the finish line for 2.3.1? |
I'll make a PR this evening or next. |
Oh, blimey! Missed this ... sorry :-( LGTM. Many thanks ... merging :-) |
I was trying to play with tagged type
https://gitter.im/milessabin/shapeless?at=56ab8938dc33b33c7548a5a2