File tree 3 files changed +9
-13
lines changed
core/src/main/scala/shims/util 3 files changed +9
-13
lines changed Original file line number Diff line number Diff line change @@ -157,6 +157,7 @@ lazy val core = crossProject
157
157
" org.typelevel" %%% " cats-core" % CatsVersion ,
158
158
" org.typelevel" %%% " cats-free" % CatsVersion ,
159
159
" org.scalaz" %%% " scalaz-core" % ScalazVersion ,
160
+ " ch.epfl.lamp" %% " dotty-library" % " 0.5.0-bin-SNAPSHOT-nonbootstrapped" ,
160
161
161
162
" com.chuusai" %%% " shapeless" % " 2.3.2" ,
162
163
@@ -169,6 +170,10 @@ lazy val coreJS = core.js
169
170
170
171
lazy val dottyThing = project
171
172
.dependsOn(coreJVM)
173
+ .settings(
174
+ projectDependencies ~= (_.map(_.withDottyCompat())),
175
+ scalaVersion := " 0.5.0-bin-SNAPSHOT"
176
+ )
172
177
173
178
enablePlugins(GitVersioning )
174
179
Original file line number Diff line number Diff line change 14
14
* limitations under the License.
15
15
*/
16
16
17
- package shims . util
17
+ package shims
18
18
19
- import scala .annotation .implicitNotFound
20
-
21
- @ implicitNotFound(" unable to prove that $A is NOT a subtype of $B (likely because it actually is)" )
22
- sealed trait </< [A , B ]
23
-
24
- private [util] trait NSubLowPriorityImplicits {
25
- implicit def universal [A , B ]: A </< B = null
26
- }
27
-
28
- object </< extends NSubLowPriorityImplicits {
29
- implicit def lie1 [A , B ](implicit ev : A <:< B ): A </< B = null
30
- implicit def lie2 [A , B ](implicit ev : A <:< B ): A </< B = null
19
+ package object util {
20
+ type </< [A , B ] = scala.implicits.Not [A <:< B ]
31
21
}
Original file line number Diff line number Diff line change @@ -24,3 +24,4 @@ addSbtPlugin("com.jsuereth" % "sbt-pgp" % "1.0.0")
24
24
addSbtPlugin(" org.xerial.sbt" % " sbt-sonatype" % " 0.5.0" )
25
25
26
26
addSbtPlugin(" org.scala-js" % " sbt-scalajs" % " 0.6.14" )
27
+ addSbtPlugin(" ch.epfl.lamp" % " sbt-dotty" % " 0.1.6" )
You can’t perform that action at this time.
0 commit comments