aboutsummaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorAmir M. Saeid <amir@glgdgt.com>2026-02-14 19:42:49 +0000
committerGitHub <noreply@github.com>2026-02-14 19:42:49 +0000
commit64e4b269c53faa70551e41c6d77ccf17ef96a68e (patch)
tree9f1328c54f8b39ba3c29bc07426fa5a8a169249c /core
parent00925aa276bf4215bdf1ad11651fa4084e6bc676 (diff)
parent671fc998f1fdfe0543cba86b8c1d541ce8578f49 (diff)
Merge pull request #1 from codiff/improve-docs
Improve build workflows
Diffstat (limited to 'core')
-rw-r--r--core/src/main/scala/com/codiff/fairstream/Fair.scala19
-rw-r--r--core/src/main/scala/com/codiff/fairstream/FairT.scala21
-rw-r--r--core/src/test/scala/com/codiff/fairstream/PythagoreanSuite.scala16
3 files changed, 54 insertions, 2 deletions
diff --git a/core/src/main/scala/com/codiff/fairstream/Fair.scala b/core/src/main/scala/com/codiff/fairstream/Fair.scala
index a665c72..586e296 100644
--- a/core/src/main/scala/com/codiff/fairstream/Fair.scala
+++ b/core/src/main/scala/com/codiff/fairstream/Fair.scala
@@ -1,6 +1,23 @@
+/*
+ * 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}
+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 f77e783..6090b78 100644
--- a/core/src/main/scala/com/codiff/fairstream/FairT.scala
+++ b/core/src/main/scala/com/codiff/fairstream/FairT.scala
@@ -1,6 +1,25 @@
+/*
+ * 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, ~>}
+import cats.Alternative
+import cats.Applicative
+import cats.Monad
+import cats.~>
sealed trait FairE[M[_], A]
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