Permalink
Browse files

Tweak scalac options

  • Loading branch information...
alexarchambault committed Mar 12, 2018
1 parent 29f8d7b commit 5bd162d5fec52bbbc8b9e31630207e5848fc554f
@@ -4,7 +4,6 @@ import coursier.util.EitherT
import org.scalajs.dom.raw.{Event, XMLHttpRequest}
import scala.concurrent.{ExecutionContext, Future, Promise}
import scala.language.implicitConversions
import scala.scalajs.js
import js.Dynamic.{global => g}
import scala.scalajs.js.timers._
@@ -2,8 +2,6 @@ package coursier.util
import java.util.concurrent.{ExecutorService, Executors, ThreadFactory}
import scala.language.higherKinds
trait Schedulable[F[_]] extends Gather[F] {
def schedule[A](pool: ExecutorService)(f: => A): F[A]
}
@@ -6,8 +6,6 @@ import java.io.File
import caseapp._
import coursier.cli.options.FetchOptions
import scala.language.reflectiveCalls
final class Fetch(options: FetchOptions, args: RemainingArgs) {
val helper = new Helper(options.common, args.all, ignoreErrors = options.artifactOptions.force)
@@ -11,8 +11,6 @@ import coursier.util.{EitherT, Gather}
import coursier.{Fetch, Module}
import scalaz.concurrent.Task
import scala.language.higherKinds
object Scaladex {
case class SearchResult(
@@ -2,8 +2,6 @@ package coursier
import coursier.util.{EitherT, Gather, Monad}
import scala.language.higherKinds
object Fetch {
type Content[F[_]] = Artifact => EitherT[F, String, String]
@@ -2,7 +2,6 @@ package coursier.core
import coursier.Fetch
import scala.language.higherKinds
import coursier.core.compatibility.encodeURIComponent
import coursier.util.{EitherT, Monad}
@@ -4,7 +4,6 @@ package core
import coursier.util.Monad
import scala.annotation.tailrec
import scala.language.higherKinds
sealed abstract class ResolutionProcess {
@@ -4,8 +4,6 @@ import coursier.Fetch
import coursier.core._
import coursier.util.{EitherT, Monad, WebPage}
import scala.language.higherKinds
final case class IvyRepository(
pattern: Pattern,
metadataPatternOpt: Option[Pattern],
@@ -4,8 +4,6 @@ import coursier.util.Traverse.TraverseOps
import coursier.util.ValidationNel
import fastparse.all._
import scala.language.implicitConversions
final case class PropertiesPattern(chunks: Seq[PropertiesPattern.ChunkOrProperty]) {
def string: String = chunks.map(_.string).mkString
@@ -5,8 +5,6 @@ import coursier.core._
import coursier.core.compatibility.encodeURIComponent
import coursier.util.{EitherT, Monad, WebPage}
import scala.language.higherKinds
object MavenRepository {
val SnapshotTimestamp = "(.*-)?[0-9]{8}\\.[0-9]{6}-[0-9]+".r
@@ -1,7 +1,5 @@
package coursier.util
import scala.language.higherKinds
final case class EitherT[F[_], L, R](run: F[Either[L, R]]) {
def map[S](f: R => S)(implicit M: Monad[F]): EitherT[F, L, S] =
@@ -1,7 +1,5 @@
package coursier.util
import scala.language.higherKinds
trait Gather[F[_]] extends Monad[F] {
def gather[A](elems: Seq[F[A]]): F[Seq[A]]
}
@@ -1,7 +1,5 @@
package coursier.util
import scala.language.higherKinds
trait Monad[F[_]] {
def point[A](a: A): F[A]
def bind[A, B](elem: F[A])(f: A => F[B]): F[B]
@@ -5,8 +5,6 @@ import java.net.{HttpURLConnection, URL, URLConnection}
import coursier.util.{EitherT, Monad}
import scala.language.higherKinds
object FallbackDependenciesRepository {
def exists(url: URL): Boolean = {
@@ -39,7 +39,12 @@ object Settings {
Seq()
}
targetJvm ++ Seq("-feature", "-deprecation")
targetJvm ++ Seq(
"-feature",
"-deprecation",
"-language:higherKinds",
"-language:implicitConversions"
)
},
javacOptions ++= {
scalaBinaryVersion.value match {
@@ -2,8 +2,6 @@ package coursier
import coursier.util.{EitherT, Monad}
import scala.language.higherKinds
final case class InterProjectRepository(projects: Seq[Project]) extends Repository {
private val map = projects
@@ -2,8 +2,6 @@ package coursier
import sbt._
import scala.language.implicitConversions
// things from sbt-structure
object Structure {
@@ -2,8 +2,6 @@ package coursier.interop
import coursier.util.{Gather, Monad}
import scala.language.higherKinds
object scalaz extends LowPriorityScalazImplicits {
implicit def coursierMonadFromScalaz[F[_]](implicit M: _root_.scalaz.Monad[F]): Monad[F] =
@@ -6,7 +6,6 @@ import java.nio.charset.Charset
import coursier.interop.scalaz._
import coursier.util.EitherT
import scala.language.implicitConversions
import scala.util.{Failure, Success, Try}
import scalaz.concurrent.Task
@@ -4,8 +4,6 @@ package test
import coursier.core._
import coursier.util.{EitherT, Monad}
import scala.language.higherKinds
final case class TestRepository(projects: Map[(Module, String), Project]) extends Repository {
val source = new core.Artifact.Source {
def artifacts(

0 comments on commit 5bd162d

Please sign in to comment.