From 78f2baa4940a7687c242317de197865b77661354 Mon Sep 17 00:00:00 2001 From: Amir Saeid Date: Sat, 14 Feb 2026 18:46:11 +0000 Subject: Add docs/directory.conf --- docs/directory.conf | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 docs/directory.conf diff --git a/docs/directory.conf b/docs/directory.conf new file mode 100644 index 0000000..08f25e2 --- /dev/null +++ b/docs/directory.conf @@ -0,0 +1,3 @@ +laika.navigationOrder = [ + index.md +] -- cgit v1.2.3 From 3037260a2e26a7b333a2dfff8c6f87641165cae8 Mon Sep 17 00:00:00 2001 From: Amir Saeid Date: Sat, 14 Feb 2026 18:56:05 +0000 Subject: Re-run githubWorkflowGenerate --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e29033a..5c6c0b2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -83,11 +83,11 @@ jobs: - name: Make target directories if: github.event_name != 'pull_request' && (startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/main') - run: mkdir -p core/.js/target core/.jvm/target project/target + run: mkdir -p core/.js/target core/.jvm/target fs2/.js/target fs2/.jvm/target project/target - name: Compress target directories if: github.event_name != 'pull_request' && (startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/main') - run: tar cf targets.tar core/.js/target core/.jvm/target project/target + run: tar cf targets.tar core/.js/target core/.jvm/target fs2/.js/target fs2/.jvm/target project/target - name: Upload target directories if: github.event_name != 'pull_request' && (startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/main') -- cgit v1.2.3 From 1afaa0401d3dfc46b79cd6d761d81ae8c37d7b07 Mon Sep 17 00:00:00 2001 From: Amir Saeid Date: Sat, 14 Feb 2026 19:04:47 +0000 Subject: Disable fatal warnings --- build.sbt | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/build.sbt b/build.sbt index 5f829ee..4a67f69 100644 --- a/build.sbt +++ b/build.sbt @@ -45,4 +45,10 @@ lazy val fs2 = crossProject(JVMPlatform, JSPlatform) ) ) -lazy val docs = project.in(file("site")).enablePlugins(TypelevelSitePlugin) +lazy val docs = project + .in(file("site")) + .enablePlugins(TypelevelSitePlugin) + .settings( + tlFatalWarnings := false + ) + .dependsOn(core.jvm, fs2.jvm) -- cgit v1.2.3 From c03636087083f051c5cbbbc78042073fefcc16b6 Mon Sep 17 00:00:00 2001 From: Amir Saeid Date: Sat, 14 Feb 2026 19:14:06 +0000 Subject: Set homeLink --- build.sbt | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/build.sbt b/build.sbt index 4a67f69..24e0101 100644 --- a/build.sbt +++ b/build.sbt @@ -1,3 +1,7 @@ +import laika.helium.Helium +import laika.helium.config._ +import laika.ast.Path.Root + // https://typelevel.org/sbt-typelevel/faq.html#what-is-a-base-version-anyway ThisBuild / tlBaseVersion := "0.0" // your current series x.y @@ -49,6 +53,11 @@ lazy val docs = project .in(file("site")) .enablePlugins(TypelevelSitePlugin) .settings( - tlFatalWarnings := false + tlFatalWarnings := false, + laikaTheme := Helium.defaults.site + .topNavigationBar( + homeLink = IconLink.internal(Root / "index.md", HeliumIcon.home) + ) + .build ) .dependsOn(core.jvm, fs2.jvm) -- cgit v1.2.3 From 37cc1f94026713a91a4914cbc89bbf37b3f20be9 Mon Sep 17 00:00:00 2001 From: Amir Saeid Date: Sat, 14 Feb 2026 19:33:13 +0000 Subject: Add headers --- core/src/main/scala/com/codiff/fairstream/Fair.scala | 16 ++++++++++++++++ core/src/main/scala/com/codiff/fairstream/FairT.scala | 16 ++++++++++++++++ .../scala/com/codiff/fairstream/fs2/conversions.scala | 16 ++++++++++++++++ .../main/scala/com/codiff/fairstream/fs2/syntax.scala | 16 ++++++++++++++++ 4 files changed, 64 insertions(+) diff --git a/core/src/main/scala/com/codiff/fairstream/Fair.scala b/core/src/main/scala/com/codiff/fairstream/Fair.scala index a665c72..bc171a0 100644 --- a/core/src/main/scala/com/codiff/fairstream/Fair.scala +++ b/core/src/main/scala/com/codiff/fairstream/Fair.scala @@ -1,3 +1,19 @@ +/* + * Copyright 2026 codiff + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package com.codiff.fairstream import cats.{Alternative, Monad} diff --git a/core/src/main/scala/com/codiff/fairstream/FairT.scala b/core/src/main/scala/com/codiff/fairstream/FairT.scala index f77e783..046e1ac 100644 --- a/core/src/main/scala/com/codiff/fairstream/FairT.scala +++ b/core/src/main/scala/com/codiff/fairstream/FairT.scala @@ -1,3 +1,19 @@ +/* + * Copyright 2026 codiff + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package com.codiff.fairstream import cats.{Alternative, Applicative, Monad, ~>} diff --git a/fs2/src/main/scala/com/codiff/fairstream/fs2/conversions.scala b/fs2/src/main/scala/com/codiff/fairstream/fs2/conversions.scala index c100d64..977bf89 100644 --- a/fs2/src/main/scala/com/codiff/fairstream/fs2/conversions.scala +++ b/fs2/src/main/scala/com/codiff/fairstream/fs2/conversions.scala @@ -1,3 +1,19 @@ +/* + * Copyright 2026 codiff + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package com.codiff.fairstream package fs2 diff --git a/fs2/src/main/scala/com/codiff/fairstream/fs2/syntax.scala b/fs2/src/main/scala/com/codiff/fairstream/fs2/syntax.scala index b44fab7..dc701d2 100644 --- a/fs2/src/main/scala/com/codiff/fairstream/fs2/syntax.scala +++ b/fs2/src/main/scala/com/codiff/fairstream/fs2/syntax.scala @@ -1,3 +1,19 @@ +/* + * Copyright 2026 codiff + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package com.codiff.fairstream package fs2 -- cgit v1.2.3 From fecddb9f00d5c4676ad208639c08466298ed709a Mon Sep 17 00:00:00 2001 From: Amir Saeid Date: Sat, 14 Feb 2026 19:35:08 +0000 Subject: Add headers to tests --- .../scala/com/codiff/fairstream/PythagoreanSuite.scala | 16 ++++++++++++++++ .../scala/com/codiff/fairstream/fs2/FairFs2Suite.scala | 16 ++++++++++++++++ 2 files changed, 32 insertions(+) diff --git a/core/src/test/scala/com/codiff/fairstream/PythagoreanSuite.scala b/core/src/test/scala/com/codiff/fairstream/PythagoreanSuite.scala index e4cf406..97327fe 100644 --- a/core/src/test/scala/com/codiff/fairstream/PythagoreanSuite.scala +++ b/core/src/test/scala/com/codiff/fairstream/PythagoreanSuite.scala @@ -1,3 +1,19 @@ +/* + * Copyright 2026 codiff + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package com.codiff.fairstream import cats.Eval diff --git a/fs2/src/test/scala/com/codiff/fairstream/fs2/FairFs2Suite.scala b/fs2/src/test/scala/com/codiff/fairstream/fs2/FairFs2Suite.scala index c7b9269..2e04c50 100644 --- a/fs2/src/test/scala/com/codiff/fairstream/fs2/FairFs2Suite.scala +++ b/fs2/src/test/scala/com/codiff/fairstream/fs2/FairFs2Suite.scala @@ -1,3 +1,19 @@ +/* + * Copyright 2026 codiff + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package com.codiff.fairstream package fs2 -- cgit v1.2.3 From 671fc998f1fdfe0543cba86b8c1d541ce8578f49 Mon Sep 17 00:00:00 2001 From: Amir Saeid Date: Sat, 14 Feb 2026 19:40:22 +0000 Subject: scalafix --- core/src/main/scala/com/codiff/fairstream/Fair.scala | 3 ++- core/src/main/scala/com/codiff/fairstream/FairT.scala | 5 ++++- fs2/src/main/scala/com/codiff/fairstream/fs2/conversions.scala | 4 +++- fs2/src/main/scala/com/codiff/fairstream/fs2/syntax.scala | 3 ++- fs2/src/test/scala/com/codiff/fairstream/fs2/FairFs2Suite.scala | 4 ++-- 5 files changed, 13 insertions(+), 6 deletions(-) diff --git a/core/src/main/scala/com/codiff/fairstream/Fair.scala b/core/src/main/scala/com/codiff/fairstream/Fair.scala index bc171a0..586e296 100644 --- a/core/src/main/scala/com/codiff/fairstream/Fair.scala +++ b/core/src/main/scala/com/codiff/fairstream/Fair.scala @@ -16,7 +16,8 @@ package com.codiff.fairstream -import cats.{Alternative, Monad} +import cats.Alternative +import cats.Monad sealed trait Fair[+A] diff --git a/core/src/main/scala/com/codiff/fairstream/FairT.scala b/core/src/main/scala/com/codiff/fairstream/FairT.scala index 046e1ac..6090b78 100644 --- a/core/src/main/scala/com/codiff/fairstream/FairT.scala +++ b/core/src/main/scala/com/codiff/fairstream/FairT.scala @@ -16,7 +16,10 @@ package com.codiff.fairstream -import cats.{Alternative, Applicative, Monad, ~>} +import cats.Alternative +import cats.Applicative +import cats.Monad +import cats.~> sealed trait FairE[M[_], A] diff --git a/fs2/src/main/scala/com/codiff/fairstream/fs2/conversions.scala b/fs2/src/main/scala/com/codiff/fairstream/fs2/conversions.scala index 977bf89..3fd014c 100644 --- a/fs2/src/main/scala/com/codiff/fairstream/fs2/conversions.scala +++ b/fs2/src/main/scala/com/codiff/fairstream/fs2/conversions.scala @@ -17,7 +17,9 @@ package com.codiff.fairstream package fs2 -import _root_.fs2.{Pull, Pure, Stream} +import _root_.fs2.Pull +import _root_.fs2.Pure +import _root_.fs2.Stream object conversions { diff --git a/fs2/src/main/scala/com/codiff/fairstream/fs2/syntax.scala b/fs2/src/main/scala/com/codiff/fairstream/fs2/syntax.scala index dc701d2..d0d8b04 100644 --- a/fs2/src/main/scala/com/codiff/fairstream/fs2/syntax.scala +++ b/fs2/src/main/scala/com/codiff/fairstream/fs2/syntax.scala @@ -17,7 +17,8 @@ package com.codiff.fairstream package fs2 -import _root_.fs2.{Pure, Stream} +import _root_.fs2.Pure +import _root_.fs2.Stream object syntax { diff --git a/fs2/src/test/scala/com/codiff/fairstream/fs2/FairFs2Suite.scala b/fs2/src/test/scala/com/codiff/fairstream/fs2/FairFs2Suite.scala index 2e04c50..6b2270a 100644 --- a/fs2/src/test/scala/com/codiff/fairstream/fs2/FairFs2Suite.scala +++ b/fs2/src/test/scala/com/codiff/fairstream/fs2/FairFs2Suite.scala @@ -17,12 +17,12 @@ package com.codiff.fairstream package fs2 -import scala.concurrent.duration._ - import cats.effect.IO import cats.syntax.all._ import munit.CatsEffectSuite +import scala.concurrent.duration._ + import syntax._ class FairFs2Suite extends CatsEffectSuite { -- cgit v1.2.3