Skip to content

Commit

Permalink
Cleanup some unused imports in generated code
Browse files Browse the repository at this point in the history
  • Loading branch information
jatcwang committed Dec 19, 2023
1 parent 820d24e commit cfe6fc4
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ name: Continuous Integration
on:
pull_request:
branches: ['**', '!update/**', '!pr/**']
types: [synchronize]
push:
branches: ['**', '!update/**', '!pr/**']
tags: [v*]
Expand Down
12 changes: 10 additions & 2 deletions build.sbt
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import FreeGen2.*
import FreeGen2._
import sbt.dsl.LinterLevel.Ignore

import scala.annotation.nowarn
import scala.sys.process.*
import scala.sys.process._

// Library versions all in one place, for convenience and sanity.
lazy val catsVersion = "2.10.0"
Expand Down Expand Up @@ -36,6 +37,7 @@ ThisBuild / scalaVersion := scala3Version
ThisBuild / crossScalaVersions := Seq(scala212Version, scala213Version, scala3Version)
ThisBuild / developers += tlGitHubDev("tpolecat", "Rob Norris")
ThisBuild / tlSonatypeUseLegacyHost := false
ThisBuild / githubWorkflowPREventTypes := Seq(PREventType.Synchronize)
ThisBuild / githubWorkflowJavaVersions := Seq(JavaSpec.temurin("11"))
ThisBuild / githubWorkflowBuildPreamble ++= Seq(
WorkflowStep.Run(
Expand Down Expand Up @@ -206,6 +208,12 @@ lazy val free = project
classOf[java.sql.ResultSet]
)
},
freeGen2KleisliInterpreterImportExcludes := Set[Class[_]](
classOf[java.util.Map[_, _]],
classOf[java.sql.DriverPropertyInfo],
classOf[java.io.Writer],
classOf[java.io.OutputStream]
)
)


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@ import scala.concurrent.duration.FiniteDuration

// Types referenced in the JDBC API
import java.io.InputStream
import java.io.OutputStream
import java.io.Reader
import java.io.Writer
import java.lang.Class
import java.lang.String
import java.math.BigDecimal
Expand All @@ -30,7 +28,6 @@ import java.sql.Connection
import java.sql.DatabaseMetaData
import java.sql.Date
import java.sql.Driver
import java.sql.DriverPropertyInfo
import java.sql.NClob
import java.sql.ParameterMetaData
import java.sql.PreparedStatement
Expand All @@ -53,7 +50,6 @@ import java.sql.Time
import java.sql.Timestamp
import java.sql.{ Array => SqlArray }
import java.util.Calendar
import java.util.Map
import java.util.Properties
import java.util.concurrent.Executor
import java.util.logging.Logger
Expand Down

0 comments on commit cfe6fc4

Please sign in to comment.