These are chat archives for fthomas/refined

29th
Jul 2016
Miles Sabin
@milessabin
Jul 29 2016 10:13
FYI: scala/scala#5310
Frank S. Thomas
@fthomas
Jul 29 2016 11:24
:sparkles: :fireworks:
Miles Sabin
@milessabin
Jul 29 2016 11:26
Here's a trick I learned from @dwijnand ...
At an SBT prompt you can set the Scala version like so,
> ++2.12.0-M5:<filesystem path>
If you clone my scala/scala repo and run dist/mkPack you'll end up with a suitable artefact under build/pack, so that would be,
> ++2.12.0-M5:/wherever/scala/build/pack
Then you can build your project with the new compiler masquerading as 2.12.0-M5 for the purpose of upstream binary dependencies.
If you use the latest shapeless 2.12.x snapshot it will be compatible with the new representation of singleton Symbol types.
Miles Sabin
@milessabin
Jul 29 2016 11:31
Though unfortunately it's just "compatible with" rather than "making use of".
I'd be super keen to know how this works for you.
Frank S. Thomas
@fthomas
Jul 29 2016 11:34
That's cool! Will definitely try it with refined
Miles Sabin
@milessabin
Jul 29 2016 13:54
Thanks!
Frank S. Thomas
@fthomas
Jul 29 2016 22:25
I'm getting a lot unresolved dependency errors with ++2.12.0-M5:/wherever/scala/build/pack in sbt. @milessabin, @dwijnand is there any documentation that describes this trick?
Dale Wijnand
@dwijnand
Jul 29 2016 22:31
it's = not :
Frank S. Thomas
@fthomas
Jul 29 2016 22:46
That seems to work. Thanks @dwijnand !
Dale Wijnand
@dwijnand
Jul 29 2016 23:03
np
Frank S. Thomas
@fthomas
Jul 29 2016 23:17
@milessabin evaluating an untypechecked Tree that contains a value of type ValueOf[1] fails:
<console>:48: error: exception during macro expansion:
scala.tools.reflect.ToolBoxError: reflective compilation has failed:

type mismatch;
 found   : ValueOf[Int]
 required: ValueOf[Int(1)]
Frank S. Thomas
@fthomas
Jul 29 2016 23:26
the same works with Witness