aboutsummaryrefslogtreecommitdiff
path: root/build.sbt
diff options
context:
space:
mode:
authorAmir Saeid <amir@glgdgt.com>2026-02-14 16:18:58 +0000
committerAmir Saeid <amir@glgdgt.com>2026-02-14 16:18:58 +0000
commit283d4eca6ac24391a5dc86cc3d55175ee5f78741 (patch)
treebe7f8f691da514917efbe0e948e09bd76c2cf673 /build.sbt
parent1fa98aed370d81b656d8e32c44f7bafa40be12b1 (diff)
Allow converting Fair/FairT to fs2.Stream
Diffstat (limited to 'build.sbt')
-rw-r--r--build.sbt15
1 files changed, 14 insertions, 1 deletions
diff --git a/build.sbt b/build.sbt
index e92779f..5f829ee 100644
--- a/build.sbt
+++ b/build.sbt
@@ -17,7 +17,7 @@ val Scala213 = "2.13.18"
ThisBuild / crossScalaVersions := Seq(Scala213, "3.3.7")
ThisBuild / scalaVersion := Scala213 // the default Scala
-lazy val root = tlCrossRootProject.aggregate(core)
+lazy val root = tlCrossRootProject.aggregate(core, fs2)
lazy val core = crossProject(JVMPlatform, JSPlatform)
.crossType(CrossType.Pure)
@@ -32,4 +32,17 @@ lazy val core = crossProject(JVMPlatform, JSPlatform)
)
)
+lazy val fs2 = crossProject(JVMPlatform, JSPlatform)
+ .crossType(CrossType.Pure)
+ .in(file("fs2"))
+ .dependsOn(core)
+ .settings(
+ name := "fairstream-fs2",
+ libraryDependencies ++= Seq(
+ "co.fs2" %%% "fs2-core" % "3.12.2",
+ "org.scalameta" %%% "munit" % "1.2.2" % Test,
+ "org.typelevel" %%% "munit-cats-effect" % "2.1.0" % Test
+ )
+ )
+
lazy val docs = project.in(file("site")).enablePlugins(TypelevelSitePlugin)