scalafiddle / scalafiddle-core

Source code for the scalafiddle.io compilation service
https://scalafiddle.io
Apache License 2.0
101 stars 37 forks source link

Support -Ypartial-unification #27

Closed LukaJCB closed 6 years ago

LukaJCB commented 6 years ago

I think this would help a lot of us doing FP and 99.9% of the time, it should cause no issues at all. :) We could always have a small toggle somewhere to turn it off if it does cause issues I guess (though I'm more than certain this will never happen in practice)

ochrons commented 6 years ago

Do you have some small piece of code I can test to verify the parameter is correctly being applied? Something that fails to compile without it.

LukaJCB commented 6 years ago

Sure,

import cats.implicits._
val x: List [Either[String, Int]] = List.empty
val y = x.sequence