From 02b996a4cb3a205935a2998e0f67fa1a7595ca4b Mon Sep 17 00:00:00 2001 From: danicheg Date: Tue, 3 May 2022 10:01:19 +0300 Subject: [PATCH 01/10] Clean up sbt plugins --- project/plugins.sbt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/project/plugins.sbt b/project/plugins.sbt index 2d924844..b6ffab3f 100644 --- a/project/plugins.sbt +++ b/project/plugins.sbt @@ -1,5 +1,4 @@ addSbtPlugin("org.scala-js" % "sbt-scalajs" % "1.10.0") addSbtPlugin("org.portable-scala" % "sbt-scalajs-crossproject" % "1.2.0") -addSbtPlugin("org.typelevel" % "sbt-typelevel-ci-release" % "0.4.9") -addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.4.6") +addSbtPlugin("org.typelevel" % "sbt-typelevel" % "0.4.9") addSbtPlugin("org.typelevel" % "sbt-typelevel-site" % "0.4.9") From d396d7cc5cb7ad8ef58eb5f7857bc0002a38bc69 Mon Sep 17 00:00:00 2001 From: danicheg Date: Tue, 3 May 2022 10:04:02 +0300 Subject: [PATCH 02/10] Regenerate ci.yml --- .github/workflows/ci.yml | 29 +++++++++-------------------- 1 file changed, 9 insertions(+), 20 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8f3e56aa..50290c4c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -30,6 +30,11 @@ jobs: os: [ubuntu-latest] scala: [2.12.15, 3.0.2, 2.13.8] java: [temurin@8, temurin@17] + exclude: + - scala: 2.12.15 + java: temurin@17 + - scala: 3.0.2 + java: temurin@17 runs-on: ${{ matrix.os }} steps: - name: Checkout current branch (full) @@ -87,6 +92,10 @@ jobs: - name: Check formatting run: sbt '++${{ matrix.scala }}' scalafmtCheckAll 'project /' scalafmtSbtCheck + - name: Check headers and formatting + if: matrix.java == 'temurin@8' + run: sbt '++${{ matrix.scala }}' headerCheckAll scalafmtCheckAll 'project /' scalafmtSbtCheck + - name: Test run: sbt '++${{ matrix.scala }}' test @@ -183,26 +192,6 @@ jobs: tar xf targets.tar rm targets.tar - - name: Download target directories (2.12.15) - uses: actions/download-artifact@v2 - with: - name: target-${{ matrix.os }}-${{ matrix.java }}-2.12.15 - - - name: Inflate target directories (2.12.15) - run: | - tar xf targets.tar - rm targets.tar - - - name: Download target directories (3.0.2) - uses: actions/download-artifact@v2 - with: - name: target-${{ matrix.os }}-${{ matrix.java }}-3.0.2 - - - name: Inflate target directories (3.0.2) - run: | - tar xf targets.tar - rm targets.tar - - name: Download target directories (3.0.2) uses: actions/download-artifact@v2 with: From 7426f2eee4b6dd5fa6510f09b97b441a7d82f98a Mon Sep 17 00:00:00 2001 From: danicheg Date: Tue, 3 May 2022 10:21:36 +0300 Subject: [PATCH 03/10] Generate headers --- build.sbt | 6 ++++-- js/src/main/scala/mouse/js.scala | 21 +++++++++++++++++++ js/src/main/scala/mouse/package.scala | 21 +++++++++++++++++++ .../src/main/scala/mouse/package.scala | 21 +++++++++++++++++++ jvm/src/main/scala/mouse/jvm.scala | 21 +++++++++++++++++++ jvm/src/main/scala/mouse/stringJvm.scala | 21 +++++++++++++++++++ .../scala-2/src/main/scala/mouse/all.scala | 21 +++++++++++++++++++ .../scala-2/src/main/scala/mouse/tuple.scala | 21 +++++++++++++++++++ .../src/main/scala/mouse/MouseFunctions.scala | 21 +++++++++++++++++++ shared/src/main/scala/mouse/any.scala | 21 +++++++++++++++++++ shared/src/main/scala/mouse/anyf.scala | 21 +++++++++++++++++++ shared/src/main/scala/mouse/boolean.scala | 21 +++++++++++++++++++ shared/src/main/scala/mouse/double.scala | 21 +++++++++++++++++++ shared/src/main/scala/mouse/fboolean.scala | 21 +++++++++++++++++++ shared/src/main/scala/mouse/feither.scala | 21 +++++++++++++++++++ shared/src/main/scala/mouse/fnested.scala | 21 +++++++++++++++++++ shared/src/main/scala/mouse/foption.scala | 21 +++++++++++++++++++ shared/src/main/scala/mouse/ftuple.scala | 21 +++++++++++++++++++ shared/src/main/scala/mouse/int.scala | 21 +++++++++++++++++++ shared/src/main/scala/mouse/long.scala | 21 +++++++++++++++++++ shared/src/main/scala/mouse/map.scala | 21 +++++++++++++++++++ shared/src/main/scala/mouse/option.scala | 21 +++++++++++++++++++ .../main/scala/mouse/partialFunction.scala | 21 +++++++++++++++++++ shared/src/main/scala/mouse/string.scala | 21 +++++++++++++++++++ shared/src/main/scala/mouse/try.scala | 21 +++++++++++++++++++ 25 files changed, 508 insertions(+), 2 deletions(-) diff --git a/build.sbt b/build.sbt index dae958b5..905ed33f 100644 --- a/build.sbt +++ b/build.sbt @@ -14,7 +14,8 @@ ThisBuild / tlSiteApiUrl := Some(url("https://www.javadoc.io/doc/org.typelevel/m lazy val root = project .in(file(".")) .settings( - name := "mouse" + name := "mouse", + licenses := List(License.MIT) ) .aggregate(js, jvm) .enablePlugins(NoPublishPlugin) @@ -41,7 +42,8 @@ lazy val cross = crossProject(JSPlatform, JVMPlatform) } }, mimaPreviousArtifacts ~= { _.filterNot(_.revision == "1.0.1") }, - Compile / sourceGenerators += (Compile / sourceManaged).map(Boilerplate.gen).taskValue + Compile / sourceGenerators += (Compile / sourceManaged).map(Boilerplate.gen).taskValue, + licenses := List(License.MIT) ) .jsSettings( crossScalaVersions := (ThisBuild / crossScalaVersions).value.filter(_.startsWith("2")) diff --git a/js/src/main/scala/mouse/js.scala b/js/src/main/scala/mouse/js.scala index 099bec4f..8920484c 100644 --- a/js/src/main/scala/mouse/js.scala +++ b/js/src/main/scala/mouse/js.scala @@ -1,3 +1,24 @@ +/* + * Copyright (c) 2022 Typelevel + * + * Permission is hereby granted, free of charge, to any person obtaining a copy of + * this software and associated documentation files (the "Software"), to deal in + * the Software without restriction, including without limitation the rights to + * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of + * the Software, and to permit persons to whom the Software is furnished to do so, + * subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS + * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR + * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER + * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN + * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + */ + package mouse trait AllJsSyntax diff --git a/js/src/main/scala/mouse/package.scala b/js/src/main/scala/mouse/package.scala index 67585aa6..d698c190 100644 --- a/js/src/main/scala/mouse/package.scala +++ b/js/src/main/scala/mouse/package.scala @@ -1,3 +1,24 @@ +/* + * Copyright (c) 2022 Typelevel + * + * Permission is hereby granted, free of charge, to any person obtaining a copy of + * this software and associated documentation files (the "Software"), to deal in + * the Software without restriction, including without limitation the rights to + * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of + * the Software, and to permit persons to whom the Software is furnished to do so, + * subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS + * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR + * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER + * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN + * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + */ + package object mouse extends MouseFunctions { object all extends AllSharedSyntax with AllJsSyntax object any extends AnySyntax diff --git a/jvm/src/main/scala-2/src/main/scala/mouse/package.scala b/jvm/src/main/scala-2/src/main/scala/mouse/package.scala index 35b6f6ad..e171c0b6 100644 --- a/jvm/src/main/scala-2/src/main/scala/mouse/package.scala +++ b/jvm/src/main/scala-2/src/main/scala/mouse/package.scala @@ -1,3 +1,24 @@ +/* + * Copyright (c) 2022 Typelevel + * + * Permission is hereby granted, free of charge, to any person obtaining a copy of + * this software and associated documentation files (the "Software"), to deal in + * the Software without restriction, including without limitation the rights to + * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of + * the Software, and to permit persons to whom the Software is furnished to do so, + * subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS + * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR + * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER + * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN + * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + */ + package object mouse extends MouseFunctions { object all extends AllSharedSyntax with AllJvmSyntax object any extends AnySyntax diff --git a/jvm/src/main/scala/mouse/jvm.scala b/jvm/src/main/scala/mouse/jvm.scala index b9d88d72..6f55d948 100644 --- a/jvm/src/main/scala/mouse/jvm.scala +++ b/jvm/src/main/scala/mouse/jvm.scala @@ -1,3 +1,24 @@ +/* + * Copyright (c) 2022 Typelevel + * + * Permission is hereby granted, free of charge, to any person obtaining a copy of + * this software and associated documentation files (the "Software"), to deal in + * the Software without restriction, including without limitation the rights to + * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of + * the Software, and to permit persons to whom the Software is furnished to do so, + * subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS + * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR + * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER + * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN + * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + */ + package mouse trait AllJvmSyntax extends StringJvmSyntax diff --git a/jvm/src/main/scala/mouse/stringJvm.scala b/jvm/src/main/scala/mouse/stringJvm.scala index 5e523286..62220a3c 100644 --- a/jvm/src/main/scala/mouse/stringJvm.scala +++ b/jvm/src/main/scala/mouse/stringJvm.scala @@ -1,3 +1,24 @@ +/* + * Copyright (c) 2022 Typelevel + * + * Permission is hereby granted, free of charge, to any person obtaining a copy of + * this software and associated documentation files (the "Software"), to deal in + * the Software without restriction, including without limitation the rights to + * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of + * the Software, and to permit persons to whom the Software is furnished to do so, + * subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS + * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR + * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER + * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN + * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + */ + package mouse import java.net.{MalformedURLException, URI, URISyntaxException, URL} diff --git a/shared/src/main/scala-2/src/main/scala/mouse/all.scala b/shared/src/main/scala-2/src/main/scala/mouse/all.scala index 5507248e..0cfb5932 100644 --- a/shared/src/main/scala-2/src/main/scala/mouse/all.scala +++ b/shared/src/main/scala-2/src/main/scala/mouse/all.scala @@ -1,3 +1,24 @@ +/* + * Copyright (c) 2022 Typelevel + * + * Permission is hereby granted, free of charge, to any person obtaining a copy of + * this software and associated documentation files (the "Software"), to deal in + * the Software without restriction, including without limitation the rights to + * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of + * the Software, and to permit persons to whom the Software is furnished to do so, + * subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS + * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR + * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER + * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN + * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + */ + package mouse trait AllSharedSyntax diff --git a/shared/src/main/scala-2/src/main/scala/mouse/tuple.scala b/shared/src/main/scala-2/src/main/scala/mouse/tuple.scala index 7c828821..b4fb381a 100644 --- a/shared/src/main/scala-2/src/main/scala/mouse/tuple.scala +++ b/shared/src/main/scala-2/src/main/scala/mouse/tuple.scala @@ -1,3 +1,24 @@ +/* + * Copyright (c) 2022 Typelevel + * + * Permission is hereby granted, free of charge, to any person obtaining a copy of + * this software and associated documentation files (the "Software"), to deal in + * the Software without restriction, including without limitation the rights to + * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of + * the Software, and to permit persons to whom the Software is furnished to do so, + * subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS + * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR + * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER + * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN + * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + */ + package mouse trait TupleSyntax { diff --git a/shared/src/main/scala/mouse/MouseFunctions.scala b/shared/src/main/scala/mouse/MouseFunctions.scala index 9e941bd8..1a1a27fd 100644 --- a/shared/src/main/scala/mouse/MouseFunctions.scala +++ b/shared/src/main/scala/mouse/MouseFunctions.scala @@ -1,3 +1,24 @@ +/* + * Copyright (c) 2022 Typelevel + * + * Permission is hereby granted, free of charge, to any person obtaining a copy of + * this software and associated documentation files (the "Software"), to deal in + * the Software without restriction, including without limitation the rights to + * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of + * the Software, and to permit persons to whom the Software is furnished to do so, + * subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS + * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR + * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER + * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN + * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + */ + package mouse trait MouseFunctions { diff --git a/shared/src/main/scala/mouse/any.scala b/shared/src/main/scala/mouse/any.scala index f1420121..e4f70772 100644 --- a/shared/src/main/scala/mouse/any.scala +++ b/shared/src/main/scala/mouse/any.scala @@ -1,3 +1,24 @@ +/* + * Copyright (c) 2022 Typelevel + * + * Permission is hereby granted, free of charge, to any person obtaining a copy of + * this software and associated documentation files (the "Software"), to deal in + * the Software without restriction, including without limitation the rights to + * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of + * the Software, and to permit persons to whom the Software is furnished to do so, + * subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS + * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR + * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER + * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN + * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + */ + package mouse import cats.Applicative diff --git a/shared/src/main/scala/mouse/anyf.scala b/shared/src/main/scala/mouse/anyf.scala index 543ea177..5114052a 100644 --- a/shared/src/main/scala/mouse/anyf.scala +++ b/shared/src/main/scala/mouse/anyf.scala @@ -1,3 +1,24 @@ +/* + * Copyright (c) 2022 Typelevel + * + * Permission is hereby granted, free of charge, to any person obtaining a copy of + * this software and associated documentation files (the "Software"), to deal in + * the Software without restriction, including without limitation the rights to + * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of + * the Software, and to permit persons to whom the Software is furnished to do so, + * subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS + * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR + * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER + * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN + * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + */ + package mouse import cats.data.EitherT diff --git a/shared/src/main/scala/mouse/boolean.scala b/shared/src/main/scala/mouse/boolean.scala index ebaab969..5602d8a3 100644 --- a/shared/src/main/scala/mouse/boolean.scala +++ b/shared/src/main/scala/mouse/boolean.scala @@ -1,3 +1,24 @@ +/* + * Copyright (c) 2022 Typelevel + * + * Permission is hereby granted, free of charge, to any person obtaining a copy of + * this software and associated documentation files (the "Software"), to deal in + * the Software without restriction, including without limitation the rights to + * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of + * the Software, and to permit persons to whom the Software is furnished to do so, + * subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS + * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR + * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER + * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN + * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + */ + package mouse import cats.data.{EitherNel, NonEmptyList, Validated, ValidatedNec, ValidatedNel} diff --git a/shared/src/main/scala/mouse/double.scala b/shared/src/main/scala/mouse/double.scala index 11072a66..712ab1dc 100644 --- a/shared/src/main/scala/mouse/double.scala +++ b/shared/src/main/scala/mouse/double.scala @@ -1,3 +1,24 @@ +/* + * Copyright (c) 2022 Typelevel + * + * Permission is hereby granted, free of charge, to any person obtaining a copy of + * this software and associated documentation files (the "Software"), to deal in + * the Software without restriction, including without limitation the rights to + * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of + * the Software, and to permit persons to whom the Software is furnished to do so, + * subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS + * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR + * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER + * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN + * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + */ + package mouse trait DoubleSyntax { diff --git a/shared/src/main/scala/mouse/fboolean.scala b/shared/src/main/scala/mouse/fboolean.scala index af503da8..e56947a0 100644 --- a/shared/src/main/scala/mouse/fboolean.scala +++ b/shared/src/main/scala/mouse/fboolean.scala @@ -1,3 +1,24 @@ +/* + * Copyright (c) 2022 Typelevel + * + * Permission is hereby granted, free of charge, to any person obtaining a copy of + * this software and associated documentation files (the "Software"), to deal in + * the Software without restriction, including without limitation the rights to + * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of + * the Software, and to permit persons to whom the Software is furnished to do so, + * subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS + * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR + * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER + * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN + * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + */ + package mouse import cats.{Functor, Monad} diff --git a/shared/src/main/scala/mouse/feither.scala b/shared/src/main/scala/mouse/feither.scala index 18d6dd90..149f60b2 100644 --- a/shared/src/main/scala/mouse/feither.scala +++ b/shared/src/main/scala/mouse/feither.scala @@ -1,3 +1,24 @@ +/* + * Copyright (c) 2022 Typelevel + * + * Permission is hereby granted, free of charge, to any person obtaining a copy of + * this software and associated documentation files (the "Software"), to deal in + * the Software without restriction, including without limitation the rights to + * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of + * the Software, and to permit persons to whom the Software is furnished to do so, + * subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS + * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR + * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER + * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN + * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + */ + package mouse import cats.data.EitherT diff --git a/shared/src/main/scala/mouse/fnested.scala b/shared/src/main/scala/mouse/fnested.scala index bb580895..daf6c105 100644 --- a/shared/src/main/scala/mouse/fnested.scala +++ b/shared/src/main/scala/mouse/fnested.scala @@ -1,3 +1,24 @@ +/* + * Copyright (c) 2022 Typelevel + * + * Permission is hereby granted, free of charge, to any person obtaining a copy of + * this software and associated documentation files (the "Software"), to deal in + * the Software without restriction, including without limitation the rights to + * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of + * the Software, and to permit persons to whom the Software is furnished to do so, + * subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS + * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR + * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER + * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN + * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + */ + package mouse import cats.{FlatMap, Functor} diff --git a/shared/src/main/scala/mouse/foption.scala b/shared/src/main/scala/mouse/foption.scala index 3d11a80c..0be4b0b8 100644 --- a/shared/src/main/scala/mouse/foption.scala +++ b/shared/src/main/scala/mouse/foption.scala @@ -1,3 +1,24 @@ +/* + * Copyright (c) 2022 Typelevel + * + * Permission is hereby granted, free of charge, to any person obtaining a copy of + * this software and associated documentation files (the "Software"), to deal in + * the Software without restriction, including without limitation the rights to + * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of + * the Software, and to permit persons to whom the Software is furnished to do so, + * subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS + * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR + * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER + * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN + * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + */ + package mouse import cats.data.EitherT diff --git a/shared/src/main/scala/mouse/ftuple.scala b/shared/src/main/scala/mouse/ftuple.scala index 81b67693..ac8e8766 100644 --- a/shared/src/main/scala/mouse/ftuple.scala +++ b/shared/src/main/scala/mouse/ftuple.scala @@ -1,3 +1,24 @@ +/* + * Copyright (c) 2022 Typelevel + * + * Permission is hereby granted, free of charge, to any person obtaining a copy of + * this software and associated documentation files (the "Software"), to deal in + * the Software without restriction, including without limitation the rights to + * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of + * the Software, and to permit persons to whom the Software is furnished to do so, + * subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS + * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR + * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER + * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN + * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + */ + package mouse trait FTupleSyntax extends FTupleNSyntax diff --git a/shared/src/main/scala/mouse/int.scala b/shared/src/main/scala/mouse/int.scala index 1e317c98..1f9f897e 100644 --- a/shared/src/main/scala/mouse/int.scala +++ b/shared/src/main/scala/mouse/int.scala @@ -1,3 +1,24 @@ +/* + * Copyright (c) 2022 Typelevel + * + * Permission is hereby granted, free of charge, to any person obtaining a copy of + * this software and associated documentation files (the "Software"), to deal in + * the Software without restriction, including without limitation the rights to + * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of + * the Software, and to permit persons to whom the Software is furnished to do so, + * subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS + * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR + * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER + * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN + * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + */ + package mouse trait IntSyntax { diff --git a/shared/src/main/scala/mouse/long.scala b/shared/src/main/scala/mouse/long.scala index 1249aee6..7a301b03 100644 --- a/shared/src/main/scala/mouse/long.scala +++ b/shared/src/main/scala/mouse/long.scala @@ -1,3 +1,24 @@ +/* + * Copyright (c) 2022 Typelevel + * + * Permission is hereby granted, free of charge, to any person obtaining a copy of + * this software and associated documentation files (the "Software"), to deal in + * the Software without restriction, including without limitation the rights to + * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of + * the Software, and to permit persons to whom the Software is furnished to do so, + * subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS + * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR + * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER + * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN + * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + */ + package mouse trait LongSyntax { diff --git a/shared/src/main/scala/mouse/map.scala b/shared/src/main/scala/mouse/map.scala index 82ce53db..dea747fe 100644 --- a/shared/src/main/scala/mouse/map.scala +++ b/shared/src/main/scala/mouse/map.scala @@ -1,3 +1,24 @@ +/* + * Copyright (c) 2022 Typelevel + * + * Permission is hereby granted, free of charge, to any person obtaining a copy of + * this software and associated documentation files (the "Software"), to deal in + * the Software without restriction, including without limitation the rights to + * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of + * the Software, and to permit persons to whom the Software is furnished to do so, + * subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS + * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR + * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER + * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN + * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + */ + package mouse import cats.{Applicative, Semigroup} diff --git a/shared/src/main/scala/mouse/option.scala b/shared/src/main/scala/mouse/option.scala index 4596e263..a8bc9395 100644 --- a/shared/src/main/scala/mouse/option.scala +++ b/shared/src/main/scala/mouse/option.scala @@ -1,3 +1,24 @@ +/* + * Copyright (c) 2022 Typelevel + * + * Permission is hereby granted, free of charge, to any person obtaining a copy of + * this software and associated documentation files (the "Software"), to deal in + * the Software without restriction, including without limitation the rights to + * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of + * the Software, and to permit persons to whom the Software is furnished to do so, + * subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS + * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR + * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER + * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN + * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + */ + package mouse import scala.util.{Failure, Success, Try} diff --git a/shared/src/main/scala/mouse/partialFunction.scala b/shared/src/main/scala/mouse/partialFunction.scala index 4fc98bbf..47bc464e 100644 --- a/shared/src/main/scala/mouse/partialFunction.scala +++ b/shared/src/main/scala/mouse/partialFunction.scala @@ -1,3 +1,24 @@ +/* + * Copyright (c) 2022 Typelevel + * + * Permission is hereby granted, free of charge, to any person obtaining a copy of + * this software and associated documentation files (the "Software"), to deal in + * the Software without restriction, including without limitation the rights to + * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of + * the Software, and to permit persons to whom the Software is furnished to do so, + * subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS + * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR + * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER + * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN + * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + */ + package mouse trait PartialFunctionLift { diff --git a/shared/src/main/scala/mouse/string.scala b/shared/src/main/scala/mouse/string.scala index 401be78c..8d9e6d94 100644 --- a/shared/src/main/scala/mouse/string.scala +++ b/shared/src/main/scala/mouse/string.scala @@ -1,3 +1,24 @@ +/* + * Copyright (c) 2022 Typelevel + * + * Permission is hereby granted, free of charge, to any person obtaining a copy of + * this software and associated documentation files (the "Software"), to deal in + * the Software without restriction, including without limitation the rights to + * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of + * the Software, and to permit persons to whom the Software is furnished to do so, + * subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS + * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR + * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER + * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN + * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + */ + package mouse import cats.data.Validated diff --git a/shared/src/main/scala/mouse/try.scala b/shared/src/main/scala/mouse/try.scala index 66bc7963..5773c216 100644 --- a/shared/src/main/scala/mouse/try.scala +++ b/shared/src/main/scala/mouse/try.scala @@ -1,3 +1,24 @@ +/* + * Copyright (c) 2022 Typelevel + * + * Permission is hereby granted, free of charge, to any person obtaining a copy of + * this software and associated documentation files (the "Software"), to deal in + * the Software without restriction, including without limitation the rights to + * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of + * the Software, and to permit persons to whom the Software is furnished to do so, + * subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS + * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR + * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER + * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN + * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + */ + package mouse import cats.Applicative From d5be960c5b697c7ac72fefbca2dee89380a47908 Mon Sep 17 00:00:00 2001 From: danicheg Date: Tue, 3 May 2022 10:22:30 +0300 Subject: [PATCH 04/10] Generate headers for tests files --- jvm/src/test/scala/mouse/StringJvmTests.scala | 21 +++++++++++++++++++ .../src/test/scala-2/mouse/MouseSuite.scala | 21 +++++++++++++++++++ .../test/scala-2/mouse/TupleSyntaxTest.scala | 21 +++++++++++++++++++ .../src/test/scala/mouse/AnyFSyntaxTest.scala | 21 +++++++++++++++++++ .../src/test/scala/mouse/AnySyntaxTest.scala | 21 +++++++++++++++++++ .../test/scala/mouse/BooleanSyntaxTest.scala | 21 +++++++++++++++++++ .../test/scala/mouse/DoubleSyntaxTest.scala | 21 +++++++++++++++++++ .../scala/mouse/FBooleanSyntaxTests.scala | 21 +++++++++++++++++++ .../test/scala/mouse/FEitherSyntaxTest.scala | 21 +++++++++++++++++++ .../test/scala/mouse/FNestedSyntaxTest.scala | 21 +++++++++++++++++++ .../test/scala/mouse/FOptionSyntaxTest.scala | 21 +++++++++++++++++++ .../test/scala/mouse/FTupleNSyntaxSuite.scala | 21 +++++++++++++++++++ .../src/test/scala/mouse/IntSyntaxTest.scala | 21 +++++++++++++++++++ .../src/test/scala/mouse/LongSyntaxTest.scala | 21 +++++++++++++++++++ .../src/test/scala/mouse/MapSyntaxTest.scala | 21 +++++++++++++++++++ .../test/scala/mouse/OptionSyntaxTest.scala | 21 +++++++++++++++++++ .../scala/mouse/PartialFunctionLiftTest.scala | 21 +++++++++++++++++++ .../test/scala/mouse/StringSyntaxTests.scala | 21 +++++++++++++++++++ .../src/test/scala/mouse/TrySyntaxTest.scala | 21 +++++++++++++++++++ 19 files changed, 399 insertions(+) diff --git a/jvm/src/test/scala/mouse/StringJvmTests.scala b/jvm/src/test/scala/mouse/StringJvmTests.scala index 9fe6155f..c732149b 100644 --- a/jvm/src/test/scala/mouse/StringJvmTests.scala +++ b/jvm/src/test/scala/mouse/StringJvmTests.scala @@ -1,3 +1,24 @@ +/* + * Copyright (c) 2022 Typelevel + * + * Permission is hereby granted, free of charge, to any person obtaining a copy of + * this software and associated documentation files (the "Software"), to deal in + * the Software without restriction, including without limitation the rights to + * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of + * the Software, and to permit persons to whom the Software is furnished to do so, + * subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS + * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR + * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER + * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN + * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + */ + package mouse import java.net.{MalformedURLException, URI, URISyntaxException, URL} diff --git a/shared/src/test/scala-2/mouse/MouseSuite.scala b/shared/src/test/scala-2/mouse/MouseSuite.scala index a9db8f01..19cf7bf4 100644 --- a/shared/src/test/scala-2/mouse/MouseSuite.scala +++ b/shared/src/test/scala-2/mouse/MouseSuite.scala @@ -1,3 +1,24 @@ +/* + * Copyright (c) 2022 Typelevel + * + * Permission is hereby granted, free of charge, to any person obtaining a copy of + * this software and associated documentation files (the "Software"), to deal in + * the Software without restriction, including without limitation the rights to + * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of + * the Software, and to permit persons to whom the Software is furnished to do so, + * subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS + * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR + * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER + * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN + * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + */ + package mouse import cats.Eq diff --git a/shared/src/test/scala-2/mouse/TupleSyntaxTest.scala b/shared/src/test/scala-2/mouse/TupleSyntaxTest.scala index d98faf9d..f96de8f5 100644 --- a/shared/src/test/scala-2/mouse/TupleSyntaxTest.scala +++ b/shared/src/test/scala-2/mouse/TupleSyntaxTest.scala @@ -1,3 +1,24 @@ +/* + * Copyright (c) 2022 Typelevel + * + * Permission is hereby granted, free of charge, to any person obtaining a copy of + * this software and associated documentation files (the "Software"), to deal in + * the Software without restriction, including without limitation the rights to + * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of + * the Software, and to permit persons to whom the Software is furnished to do so, + * subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS + * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR + * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER + * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN + * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + */ + package mouse class TupleSyntaxTest extends MouseSuite { diff --git a/shared/src/test/scala/mouse/AnyFSyntaxTest.scala b/shared/src/test/scala/mouse/AnyFSyntaxTest.scala index 82500b1b..a33033e3 100644 --- a/shared/src/test/scala/mouse/AnyFSyntaxTest.scala +++ b/shared/src/test/scala/mouse/AnyFSyntaxTest.scala @@ -1,3 +1,24 @@ +/* + * Copyright (c) 2022 Typelevel + * + * Permission is hereby granted, free of charge, to any person obtaining a copy of + * this software and associated documentation files (the "Software"), to deal in + * the Software without restriction, including without limitation the rights to + * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of + * the Software, and to permit persons to whom the Software is furnished to do so, + * subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS + * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR + * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER + * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN + * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + */ + package mouse import cats.data.EitherT diff --git a/shared/src/test/scala/mouse/AnySyntaxTest.scala b/shared/src/test/scala/mouse/AnySyntaxTest.scala index e44e985c..b8c5a7b3 100644 --- a/shared/src/test/scala/mouse/AnySyntaxTest.scala +++ b/shared/src/test/scala/mouse/AnySyntaxTest.scala @@ -1,3 +1,24 @@ +/* + * Copyright (c) 2022 Typelevel + * + * Permission is hereby granted, free of charge, to any person obtaining a copy of + * this software and associated documentation files (the "Software"), to deal in + * the Software without restriction, including without limitation the rights to + * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of + * the Software, and to permit persons to whom the Software is furnished to do so, + * subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS + * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR + * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER + * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN + * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + */ + package mouse class AnySyntaxTest extends MouseSuite with MouseFunctions { diff --git a/shared/src/test/scala/mouse/BooleanSyntaxTest.scala b/shared/src/test/scala/mouse/BooleanSyntaxTest.scala index 95dcbaa2..75aa417d 100644 --- a/shared/src/test/scala/mouse/BooleanSyntaxTest.scala +++ b/shared/src/test/scala/mouse/BooleanSyntaxTest.scala @@ -1,3 +1,24 @@ +/* + * Copyright (c) 2022 Typelevel + * + * Permission is hereby granted, free of charge, to any person obtaining a copy of + * this software and associated documentation files (the "Software"), to deal in + * the Software without restriction, including without limitation the rights to + * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of + * the Software, and to permit persons to whom the Software is furnished to do so, + * subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS + * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR + * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER + * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN + * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + */ + package mouse import cats.data.{NonEmptyList, Validated} diff --git a/shared/src/test/scala/mouse/DoubleSyntaxTest.scala b/shared/src/test/scala/mouse/DoubleSyntaxTest.scala index f593fafb..02f2a434 100644 --- a/shared/src/test/scala/mouse/DoubleSyntaxTest.scala +++ b/shared/src/test/scala/mouse/DoubleSyntaxTest.scala @@ -1,3 +1,24 @@ +/* + * Copyright (c) 2022 Typelevel + * + * Permission is hereby granted, free of charge, to any person obtaining a copy of + * this software and associated documentation files (the "Software"), to deal in + * the Software without restriction, including without limitation the rights to + * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of + * the Software, and to permit persons to whom the Software is furnished to do so, + * subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS + * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR + * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER + * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN + * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + */ + package mouse class DoubleSyntaxTest extends MouseSuite { diff --git a/shared/src/test/scala/mouse/FBooleanSyntaxTests.scala b/shared/src/test/scala/mouse/FBooleanSyntaxTests.scala index 102a1bb0..98e6ffee 100644 --- a/shared/src/test/scala/mouse/FBooleanSyntaxTests.scala +++ b/shared/src/test/scala/mouse/FBooleanSyntaxTests.scala @@ -1,3 +1,24 @@ +/* + * Copyright (c) 2022 Typelevel + * + * Permission is hereby granted, free of charge, to any person obtaining a copy of + * this software and associated documentation files (the "Software"), to deal in + * the Software without restriction, including without limitation the rights to + * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of + * the Software, and to permit persons to whom the Software is furnished to do so, + * subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS + * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR + * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER + * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN + * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + */ + package mouse import cats.{Eval, Id} diff --git a/shared/src/test/scala/mouse/FEitherSyntaxTest.scala b/shared/src/test/scala/mouse/FEitherSyntaxTest.scala index 5a8f73e3..d012bbda 100644 --- a/shared/src/test/scala/mouse/FEitherSyntaxTest.scala +++ b/shared/src/test/scala/mouse/FEitherSyntaxTest.scala @@ -1,3 +1,24 @@ +/* + * Copyright (c) 2022 Typelevel + * + * Permission is hereby granted, free of charge, to any person obtaining a copy of + * this software and associated documentation files (the "Software"), to deal in + * the Software without restriction, including without limitation the rights to + * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of + * the Software, and to permit persons to whom the Software is furnished to do so, + * subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS + * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR + * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER + * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN + * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + */ + package mouse import cats.data.EitherT diff --git a/shared/src/test/scala/mouse/FNestedSyntaxTest.scala b/shared/src/test/scala/mouse/FNestedSyntaxTest.scala index a0713ebe..cf944047 100644 --- a/shared/src/test/scala/mouse/FNestedSyntaxTest.scala +++ b/shared/src/test/scala/mouse/FNestedSyntaxTest.scala @@ -1,3 +1,24 @@ +/* + * Copyright (c) 2022 Typelevel + * + * Permission is hereby granted, free of charge, to any person obtaining a copy of + * this software and associated documentation files (the "Software"), to deal in + * the Software without restriction, including without limitation the rights to + * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of + * the Software, and to permit persons to whom the Software is furnished to do so, + * subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS + * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR + * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER + * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN + * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + */ + package mouse class FNestedSyntaxTest extends MouseSuite { diff --git a/shared/src/test/scala/mouse/FOptionSyntaxTest.scala b/shared/src/test/scala/mouse/FOptionSyntaxTest.scala index 5b2ccd10..df066957 100644 --- a/shared/src/test/scala/mouse/FOptionSyntaxTest.scala +++ b/shared/src/test/scala/mouse/FOptionSyntaxTest.scala @@ -1,3 +1,24 @@ +/* + * Copyright (c) 2022 Typelevel + * + * Permission is hereby granted, free of charge, to any person obtaining a copy of + * this software and associated documentation files (the "Software"), to deal in + * the Software without restriction, including without limitation the rights to + * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of + * the Software, and to permit persons to whom the Software is furnished to do so, + * subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS + * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR + * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER + * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN + * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + */ + package mouse import cats.data.OptionT diff --git a/shared/src/test/scala/mouse/FTupleNSyntaxSuite.scala b/shared/src/test/scala/mouse/FTupleNSyntaxSuite.scala index 92b48df9..82f93078 100644 --- a/shared/src/test/scala/mouse/FTupleNSyntaxSuite.scala +++ b/shared/src/test/scala/mouse/FTupleNSyntaxSuite.scala @@ -1,3 +1,24 @@ +/* + * Copyright (c) 2022 Typelevel + * + * Permission is hereby granted, free of charge, to any person obtaining a copy of + * this software and associated documentation files (the "Software"), to deal in + * the Software without restriction, including without limitation the rights to + * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of + * the Software, and to permit persons to whom the Software is furnished to do so, + * subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS + * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR + * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER + * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN + * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + */ + package mouse import org.scalacheck.Prop._ diff --git a/shared/src/test/scala/mouse/IntSyntaxTest.scala b/shared/src/test/scala/mouse/IntSyntaxTest.scala index dc6eb745..31d7c612 100644 --- a/shared/src/test/scala/mouse/IntSyntaxTest.scala +++ b/shared/src/test/scala/mouse/IntSyntaxTest.scala @@ -1,3 +1,24 @@ +/* + * Copyright (c) 2022 Typelevel + * + * Permission is hereby granted, free of charge, to any person obtaining a copy of + * this software and associated documentation files (the "Software"), to deal in + * the Software without restriction, including without limitation the rights to + * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of + * the Software, and to permit persons to whom the Software is furnished to do so, + * subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS + * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR + * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER + * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN + * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + */ + package mouse class IntSyntaxTest extends MouseSuite { diff --git a/shared/src/test/scala/mouse/LongSyntaxTest.scala b/shared/src/test/scala/mouse/LongSyntaxTest.scala index 309522ac..e6f46d79 100644 --- a/shared/src/test/scala/mouse/LongSyntaxTest.scala +++ b/shared/src/test/scala/mouse/LongSyntaxTest.scala @@ -1,3 +1,24 @@ +/* + * Copyright (c) 2022 Typelevel + * + * Permission is hereby granted, free of charge, to any person obtaining a copy of + * this software and associated documentation files (the "Software"), to deal in + * the Software without restriction, including without limitation the rights to + * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of + * the Software, and to permit persons to whom the Software is furnished to do so, + * subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS + * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR + * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER + * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN + * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + */ + package mouse class LongSyntaxTest extends MouseSuite { diff --git a/shared/src/test/scala/mouse/MapSyntaxTest.scala b/shared/src/test/scala/mouse/MapSyntaxTest.scala index c6c6b608..d4c1c9d2 100644 --- a/shared/src/test/scala/mouse/MapSyntaxTest.scala +++ b/shared/src/test/scala/mouse/MapSyntaxTest.scala @@ -1,3 +1,24 @@ +/* + * Copyright (c) 2022 Typelevel + * + * Permission is hereby granted, free of charge, to any person obtaining a copy of + * this software and associated documentation files (the "Software"), to deal in + * the Software without restriction, including without limitation the rights to + * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of + * the Software, and to permit persons to whom the Software is furnished to do so, + * subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS + * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR + * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER + * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN + * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + */ + package mouse class MapSyntaxTest extends MouseSuite { diff --git a/shared/src/test/scala/mouse/OptionSyntaxTest.scala b/shared/src/test/scala/mouse/OptionSyntaxTest.scala index fdf3622c..203505a9 100644 --- a/shared/src/test/scala/mouse/OptionSyntaxTest.scala +++ b/shared/src/test/scala/mouse/OptionSyntaxTest.scala @@ -1,3 +1,24 @@ +/* + * Copyright (c) 2022 Typelevel + * + * Permission is hereby granted, free of charge, to any person obtaining a copy of + * this software and associated documentation files (the "Software"), to deal in + * the Software without restriction, including without limitation the rights to + * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of + * the Software, and to permit persons to whom the Software is furnished to do so, + * subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS + * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR + * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER + * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN + * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + */ + package mouse import scala.util.{Failure, Success} diff --git a/shared/src/test/scala/mouse/PartialFunctionLiftTest.scala b/shared/src/test/scala/mouse/PartialFunctionLiftTest.scala index e48a4a6f..89cbacbc 100644 --- a/shared/src/test/scala/mouse/PartialFunctionLiftTest.scala +++ b/shared/src/test/scala/mouse/PartialFunctionLiftTest.scala @@ -1,3 +1,24 @@ +/* + * Copyright (c) 2022 Typelevel + * + * Permission is hereby granted, free of charge, to any person obtaining a copy of + * this software and associated documentation files (the "Software"), to deal in + * the Software without restriction, including without limitation the rights to + * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of + * the Software, and to permit persons to whom the Software is furnished to do so, + * subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS + * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR + * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER + * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN + * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + */ + package mouse class PartialFunctionLiftTest extends MouseSuite { diff --git a/shared/src/test/scala/mouse/StringSyntaxTests.scala b/shared/src/test/scala/mouse/StringSyntaxTests.scala index 9030696a..e0234531 100644 --- a/shared/src/test/scala/mouse/StringSyntaxTests.scala +++ b/shared/src/test/scala/mouse/StringSyntaxTests.scala @@ -1,3 +1,24 @@ +/* + * Copyright (c) 2022 Typelevel + * + * Permission is hereby granted, free of charge, to any person obtaining a copy of + * this software and associated documentation files (the "Software"), to deal in + * the Software without restriction, including without limitation the rights to + * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of + * the Software, and to permit persons to whom the Software is furnished to do so, + * subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS + * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR + * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER + * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN + * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + */ + package mouse import cats.syntax.all._ diff --git a/shared/src/test/scala/mouse/TrySyntaxTest.scala b/shared/src/test/scala/mouse/TrySyntaxTest.scala index ae33a137..9f3b150b 100644 --- a/shared/src/test/scala/mouse/TrySyntaxTest.scala +++ b/shared/src/test/scala/mouse/TrySyntaxTest.scala @@ -1,3 +1,24 @@ +/* + * Copyright (c) 2022 Typelevel + * + * Permission is hereby granted, free of charge, to any person obtaining a copy of + * this software and associated documentation files (the "Software"), to deal in + * the Software without restriction, including without limitation the rights to + * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of + * the Software, and to permit persons to whom the Software is furnished to do so, + * subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS + * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR + * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER + * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN + * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + */ + package mouse import cats.syntax.eq._ From d500c2660bb907b09ea7ad30150d88a581a56df5 Mon Sep 17 00:00:00 2001 From: danicheg Date: Tue, 3 May 2022 10:35:04 +0300 Subject: [PATCH 05/10] Generate headers for Scala 3 sources --- .../src/main/scala/mouse/package.scala | 21 +++++++++++++++++++ .../scala-3/src/main/scala/mouse/all.scala | 21 +++++++++++++++++++ .../src/test/scala-3/mouse/MouseSuite.scala | 21 +++++++++++++++++++ 3 files changed, 63 insertions(+) diff --git a/jvm/src/main/scala-3/src/main/scala/mouse/package.scala b/jvm/src/main/scala-3/src/main/scala/mouse/package.scala index 3a162f30..17acfe4c 100644 --- a/jvm/src/main/scala-3/src/main/scala/mouse/package.scala +++ b/jvm/src/main/scala-3/src/main/scala/mouse/package.scala @@ -1,3 +1,24 @@ +/* + * Copyright (c) 2022 Typelevel + * + * Permission is hereby granted, free of charge, to any person obtaining a copy of + * this software and associated documentation files (the "Software"), to deal in + * the Software without restriction, including without limitation the rights to + * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of + * the Software, and to permit persons to whom the Software is furnished to do so, + * subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS + * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR + * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER + * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN + * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + */ + package object mouse extends MouseFunctions { object all extends AllSharedSyntax with AllJvmSyntax object any extends AnySyntax diff --git a/shared/src/main/scala-3/src/main/scala/mouse/all.scala b/shared/src/main/scala-3/src/main/scala/mouse/all.scala index cd79a8ce..14431b86 100644 --- a/shared/src/main/scala-3/src/main/scala/mouse/all.scala +++ b/shared/src/main/scala-3/src/main/scala/mouse/all.scala @@ -1,3 +1,24 @@ +/* + * Copyright (c) 2022 Typelevel + * + * Permission is hereby granted, free of charge, to any person obtaining a copy of + * this software and associated documentation files (the "Software"), to deal in + * the Software without restriction, including without limitation the rights to + * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of + * the Software, and to permit persons to whom the Software is furnished to do so, + * subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS + * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR + * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER + * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN + * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + */ + package mouse trait AllSharedSyntax diff --git a/shared/src/test/scala-3/mouse/MouseSuite.scala b/shared/src/test/scala-3/mouse/MouseSuite.scala index a9db8f01..19cf7bf4 100644 --- a/shared/src/test/scala-3/mouse/MouseSuite.scala +++ b/shared/src/test/scala-3/mouse/MouseSuite.scala @@ -1,3 +1,24 @@ +/* + * Copyright (c) 2022 Typelevel + * + * Permission is hereby granted, free of charge, to any person obtaining a copy of + * this software and associated documentation files (the "Software"), to deal in + * the Software without restriction, including without limitation the rights to + * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of + * the Software, and to permit persons to whom the Software is furnished to do so, + * subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS + * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR + * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER + * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN + * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + */ + package mouse import cats.Eq From 0c7808ce954962832b91f17ce88fea10f3c95e19 Mon Sep 17 00:00:00 2001 From: danicheg Date: Tue, 3 May 2022 10:39:06 +0300 Subject: [PATCH 06/10] Fix startYear --- build.sbt | 3 ++- js/src/main/scala/mouse/js.scala | 2 +- js/src/main/scala/mouse/package.scala | 2 +- jvm/src/main/scala-2/src/main/scala/mouse/package.scala | 2 +- jvm/src/main/scala-3/src/main/scala/mouse/package.scala | 2 +- jvm/src/main/scala/mouse/jvm.scala | 2 +- jvm/src/main/scala/mouse/stringJvm.scala | 2 +- shared/src/main/scala-2/src/main/scala/mouse/all.scala | 2 +- shared/src/main/scala-2/src/main/scala/mouse/tuple.scala | 2 +- shared/src/main/scala-3/src/main/scala/mouse/all.scala | 2 +- shared/src/main/scala/mouse/MouseFunctions.scala | 2 +- shared/src/main/scala/mouse/any.scala | 2 +- shared/src/main/scala/mouse/anyf.scala | 2 +- shared/src/main/scala/mouse/boolean.scala | 2 +- shared/src/main/scala/mouse/double.scala | 2 +- shared/src/main/scala/mouse/fboolean.scala | 2 +- shared/src/main/scala/mouse/feither.scala | 2 +- shared/src/main/scala/mouse/fnested.scala | 2 +- shared/src/main/scala/mouse/foption.scala | 2 +- shared/src/main/scala/mouse/ftuple.scala | 2 +- shared/src/main/scala/mouse/int.scala | 2 +- shared/src/main/scala/mouse/long.scala | 2 +- shared/src/main/scala/mouse/map.scala | 2 +- shared/src/main/scala/mouse/option.scala | 2 +- shared/src/main/scala/mouse/partialFunction.scala | 2 +- shared/src/main/scala/mouse/string.scala | 2 +- shared/src/main/scala/mouse/try.scala | 2 +- 27 files changed, 28 insertions(+), 27 deletions(-) diff --git a/build.sbt b/build.sbt index 905ed33f..f20be3e6 100644 --- a/build.sbt +++ b/build.sbt @@ -43,7 +43,8 @@ lazy val cross = crossProject(JSPlatform, JVMPlatform) }, mimaPreviousArtifacts ~= { _.filterNot(_.revision == "1.0.1") }, Compile / sourceGenerators += (Compile / sourceManaged).map(Boilerplate.gen).taskValue, - licenses := List(License.MIT) + licenses := List(License.MIT), + startYear := Some(2016) ) .jsSettings( crossScalaVersions := (ThisBuild / crossScalaVersions).value.filter(_.startsWith("2")) diff --git a/js/src/main/scala/mouse/js.scala b/js/src/main/scala/mouse/js.scala index 8920484c..8232dce8 100644 --- a/js/src/main/scala/mouse/js.scala +++ b/js/src/main/scala/mouse/js.scala @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022 Typelevel + * Copyright (c) 2016 Typelevel * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in diff --git a/js/src/main/scala/mouse/package.scala b/js/src/main/scala/mouse/package.scala index d698c190..3c1eb882 100644 --- a/js/src/main/scala/mouse/package.scala +++ b/js/src/main/scala/mouse/package.scala @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022 Typelevel + * Copyright (c) 2016 Typelevel * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in diff --git a/jvm/src/main/scala-2/src/main/scala/mouse/package.scala b/jvm/src/main/scala-2/src/main/scala/mouse/package.scala index e171c0b6..a11c2dba 100644 --- a/jvm/src/main/scala-2/src/main/scala/mouse/package.scala +++ b/jvm/src/main/scala-2/src/main/scala/mouse/package.scala @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022 Typelevel + * Copyright (c) 2016 Typelevel * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in diff --git a/jvm/src/main/scala-3/src/main/scala/mouse/package.scala b/jvm/src/main/scala-3/src/main/scala/mouse/package.scala index 17acfe4c..4d6a4395 100644 --- a/jvm/src/main/scala-3/src/main/scala/mouse/package.scala +++ b/jvm/src/main/scala-3/src/main/scala/mouse/package.scala @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022 Typelevel + * Copyright (c) 2016 Typelevel * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in diff --git a/jvm/src/main/scala/mouse/jvm.scala b/jvm/src/main/scala/mouse/jvm.scala index 6f55d948..d2ba50c2 100644 --- a/jvm/src/main/scala/mouse/jvm.scala +++ b/jvm/src/main/scala/mouse/jvm.scala @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022 Typelevel + * Copyright (c) 2016 Typelevel * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in diff --git a/jvm/src/main/scala/mouse/stringJvm.scala b/jvm/src/main/scala/mouse/stringJvm.scala index 62220a3c..4d935fd6 100644 --- a/jvm/src/main/scala/mouse/stringJvm.scala +++ b/jvm/src/main/scala/mouse/stringJvm.scala @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022 Typelevel + * Copyright (c) 2016 Typelevel * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in diff --git a/shared/src/main/scala-2/src/main/scala/mouse/all.scala b/shared/src/main/scala-2/src/main/scala/mouse/all.scala index 0cfb5932..0d8cd46c 100644 --- a/shared/src/main/scala-2/src/main/scala/mouse/all.scala +++ b/shared/src/main/scala-2/src/main/scala/mouse/all.scala @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022 Typelevel + * Copyright (c) 2016 Typelevel * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in diff --git a/shared/src/main/scala-2/src/main/scala/mouse/tuple.scala b/shared/src/main/scala-2/src/main/scala/mouse/tuple.scala index b4fb381a..e0609fe9 100644 --- a/shared/src/main/scala-2/src/main/scala/mouse/tuple.scala +++ b/shared/src/main/scala-2/src/main/scala/mouse/tuple.scala @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022 Typelevel + * Copyright (c) 2016 Typelevel * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in diff --git a/shared/src/main/scala-3/src/main/scala/mouse/all.scala b/shared/src/main/scala-3/src/main/scala/mouse/all.scala index 14431b86..d7bbe643 100644 --- a/shared/src/main/scala-3/src/main/scala/mouse/all.scala +++ b/shared/src/main/scala-3/src/main/scala/mouse/all.scala @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022 Typelevel + * Copyright (c) 2016 Typelevel * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in diff --git a/shared/src/main/scala/mouse/MouseFunctions.scala b/shared/src/main/scala/mouse/MouseFunctions.scala index 1a1a27fd..20f8ee6a 100644 --- a/shared/src/main/scala/mouse/MouseFunctions.scala +++ b/shared/src/main/scala/mouse/MouseFunctions.scala @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022 Typelevel + * Copyright (c) 2016 Typelevel * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in diff --git a/shared/src/main/scala/mouse/any.scala b/shared/src/main/scala/mouse/any.scala index e4f70772..e0c67c6a 100644 --- a/shared/src/main/scala/mouse/any.scala +++ b/shared/src/main/scala/mouse/any.scala @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022 Typelevel + * Copyright (c) 2016 Typelevel * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in diff --git a/shared/src/main/scala/mouse/anyf.scala b/shared/src/main/scala/mouse/anyf.scala index 5114052a..a6e52734 100644 --- a/shared/src/main/scala/mouse/anyf.scala +++ b/shared/src/main/scala/mouse/anyf.scala @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022 Typelevel + * Copyright (c) 2016 Typelevel * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in diff --git a/shared/src/main/scala/mouse/boolean.scala b/shared/src/main/scala/mouse/boolean.scala index 5602d8a3..4067bb4a 100644 --- a/shared/src/main/scala/mouse/boolean.scala +++ b/shared/src/main/scala/mouse/boolean.scala @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022 Typelevel + * Copyright (c) 2016 Typelevel * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in diff --git a/shared/src/main/scala/mouse/double.scala b/shared/src/main/scala/mouse/double.scala index 712ab1dc..f05095c4 100644 --- a/shared/src/main/scala/mouse/double.scala +++ b/shared/src/main/scala/mouse/double.scala @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022 Typelevel + * Copyright (c) 2016 Typelevel * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in diff --git a/shared/src/main/scala/mouse/fboolean.scala b/shared/src/main/scala/mouse/fboolean.scala index e56947a0..0a633c44 100644 --- a/shared/src/main/scala/mouse/fboolean.scala +++ b/shared/src/main/scala/mouse/fboolean.scala @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022 Typelevel + * Copyright (c) 2016 Typelevel * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in diff --git a/shared/src/main/scala/mouse/feither.scala b/shared/src/main/scala/mouse/feither.scala index 149f60b2..4fc51f6d 100644 --- a/shared/src/main/scala/mouse/feither.scala +++ b/shared/src/main/scala/mouse/feither.scala @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022 Typelevel + * Copyright (c) 2016 Typelevel * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in diff --git a/shared/src/main/scala/mouse/fnested.scala b/shared/src/main/scala/mouse/fnested.scala index daf6c105..71181a60 100644 --- a/shared/src/main/scala/mouse/fnested.scala +++ b/shared/src/main/scala/mouse/fnested.scala @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022 Typelevel + * Copyright (c) 2016 Typelevel * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in diff --git a/shared/src/main/scala/mouse/foption.scala b/shared/src/main/scala/mouse/foption.scala index 0be4b0b8..98f9a9fd 100644 --- a/shared/src/main/scala/mouse/foption.scala +++ b/shared/src/main/scala/mouse/foption.scala @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022 Typelevel + * Copyright (c) 2016 Typelevel * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in diff --git a/shared/src/main/scala/mouse/ftuple.scala b/shared/src/main/scala/mouse/ftuple.scala index ac8e8766..c8374318 100644 --- a/shared/src/main/scala/mouse/ftuple.scala +++ b/shared/src/main/scala/mouse/ftuple.scala @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022 Typelevel + * Copyright (c) 2016 Typelevel * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in diff --git a/shared/src/main/scala/mouse/int.scala b/shared/src/main/scala/mouse/int.scala index 1f9f897e..7de5976f 100644 --- a/shared/src/main/scala/mouse/int.scala +++ b/shared/src/main/scala/mouse/int.scala @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022 Typelevel + * Copyright (c) 2016 Typelevel * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in diff --git a/shared/src/main/scala/mouse/long.scala b/shared/src/main/scala/mouse/long.scala index 7a301b03..7db1938b 100644 --- a/shared/src/main/scala/mouse/long.scala +++ b/shared/src/main/scala/mouse/long.scala @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022 Typelevel + * Copyright (c) 2016 Typelevel * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in diff --git a/shared/src/main/scala/mouse/map.scala b/shared/src/main/scala/mouse/map.scala index dea747fe..0d0ffc2f 100644 --- a/shared/src/main/scala/mouse/map.scala +++ b/shared/src/main/scala/mouse/map.scala @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022 Typelevel + * Copyright (c) 2016 Typelevel * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in diff --git a/shared/src/main/scala/mouse/option.scala b/shared/src/main/scala/mouse/option.scala index a8bc9395..fbf2617a 100644 --- a/shared/src/main/scala/mouse/option.scala +++ b/shared/src/main/scala/mouse/option.scala @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022 Typelevel + * Copyright (c) 2016 Typelevel * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in diff --git a/shared/src/main/scala/mouse/partialFunction.scala b/shared/src/main/scala/mouse/partialFunction.scala index 47bc464e..d3c3d105 100644 --- a/shared/src/main/scala/mouse/partialFunction.scala +++ b/shared/src/main/scala/mouse/partialFunction.scala @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022 Typelevel + * Copyright (c) 2016 Typelevel * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in diff --git a/shared/src/main/scala/mouse/string.scala b/shared/src/main/scala/mouse/string.scala index 8d9e6d94..66826d82 100644 --- a/shared/src/main/scala/mouse/string.scala +++ b/shared/src/main/scala/mouse/string.scala @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022 Typelevel + * Copyright (c) 2016 Typelevel * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in diff --git a/shared/src/main/scala/mouse/try.scala b/shared/src/main/scala/mouse/try.scala index 5773c216..f1452cf7 100644 --- a/shared/src/main/scala/mouse/try.scala +++ b/shared/src/main/scala/mouse/try.scala @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022 Typelevel + * Copyright (c) 2016 Typelevel * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in From e6a46b0e5799f41d521176cdc1f98e3d1c4cff8b Mon Sep 17 00:00:00 2001 From: danicheg Date: Tue, 3 May 2022 10:41:10 +0300 Subject: [PATCH 07/10] Fix warning in MouseFunctions --- jvm/src/test/scala/mouse/StringJvmTests.scala | 2 +- shared/src/main/scala/mouse/MouseFunctions.scala | 4 +++- shared/src/test/scala-2/mouse/MouseSuite.scala | 2 +- shared/src/test/scala-2/mouse/TupleSyntaxTest.scala | 2 +- shared/src/test/scala-3/mouse/MouseSuite.scala | 2 +- shared/src/test/scala/mouse/AnyFSyntaxTest.scala | 2 +- shared/src/test/scala/mouse/AnySyntaxTest.scala | 2 +- shared/src/test/scala/mouse/BooleanSyntaxTest.scala | 2 +- shared/src/test/scala/mouse/DoubleSyntaxTest.scala | 2 +- shared/src/test/scala/mouse/FBooleanSyntaxTests.scala | 2 +- shared/src/test/scala/mouse/FEitherSyntaxTest.scala | 2 +- shared/src/test/scala/mouse/FNestedSyntaxTest.scala | 2 +- shared/src/test/scala/mouse/FOptionSyntaxTest.scala | 2 +- shared/src/test/scala/mouse/FTupleNSyntaxSuite.scala | 2 +- shared/src/test/scala/mouse/IntSyntaxTest.scala | 2 +- shared/src/test/scala/mouse/LongSyntaxTest.scala | 2 +- shared/src/test/scala/mouse/MapSyntaxTest.scala | 2 +- shared/src/test/scala/mouse/OptionSyntaxTest.scala | 2 +- shared/src/test/scala/mouse/PartialFunctionLiftTest.scala | 2 +- shared/src/test/scala/mouse/StringSyntaxTests.scala | 2 +- shared/src/test/scala/mouse/TrySyntaxTest.scala | 2 +- 21 files changed, 23 insertions(+), 21 deletions(-) diff --git a/jvm/src/test/scala/mouse/StringJvmTests.scala b/jvm/src/test/scala/mouse/StringJvmTests.scala index c732149b..47359999 100644 --- a/jvm/src/test/scala/mouse/StringJvmTests.scala +++ b/jvm/src/test/scala/mouse/StringJvmTests.scala @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022 Typelevel + * Copyright (c) 2016 Typelevel * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in diff --git a/shared/src/main/scala/mouse/MouseFunctions.scala b/shared/src/main/scala/mouse/MouseFunctions.scala index 20f8ee6a..23bb4a4a 100644 --- a/shared/src/main/scala/mouse/MouseFunctions.scala +++ b/shared/src/main/scala/mouse/MouseFunctions.scala @@ -21,6 +21,8 @@ package mouse +import scala.annotation.nowarn + trait MouseFunctions { /** @@ -30,6 +32,6 @@ trait MouseFunctions { * @param a * - the value to be evaluated and ignored. */ - def ignore(a: Any): Unit = () + def ignore(@nowarn a: Any): Unit = () } diff --git a/shared/src/test/scala-2/mouse/MouseSuite.scala b/shared/src/test/scala-2/mouse/MouseSuite.scala index 19cf7bf4..64c8d72d 100644 --- a/shared/src/test/scala-2/mouse/MouseSuite.scala +++ b/shared/src/test/scala-2/mouse/MouseSuite.scala @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022 Typelevel + * Copyright (c) 2016 Typelevel * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in diff --git a/shared/src/test/scala-2/mouse/TupleSyntaxTest.scala b/shared/src/test/scala-2/mouse/TupleSyntaxTest.scala index f96de8f5..ae235611 100644 --- a/shared/src/test/scala-2/mouse/TupleSyntaxTest.scala +++ b/shared/src/test/scala-2/mouse/TupleSyntaxTest.scala @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022 Typelevel + * Copyright (c) 2016 Typelevel * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in diff --git a/shared/src/test/scala-3/mouse/MouseSuite.scala b/shared/src/test/scala-3/mouse/MouseSuite.scala index 19cf7bf4..64c8d72d 100644 --- a/shared/src/test/scala-3/mouse/MouseSuite.scala +++ b/shared/src/test/scala-3/mouse/MouseSuite.scala @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022 Typelevel + * Copyright (c) 2016 Typelevel * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in diff --git a/shared/src/test/scala/mouse/AnyFSyntaxTest.scala b/shared/src/test/scala/mouse/AnyFSyntaxTest.scala index a33033e3..646bb319 100644 --- a/shared/src/test/scala/mouse/AnyFSyntaxTest.scala +++ b/shared/src/test/scala/mouse/AnyFSyntaxTest.scala @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022 Typelevel + * Copyright (c) 2016 Typelevel * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in diff --git a/shared/src/test/scala/mouse/AnySyntaxTest.scala b/shared/src/test/scala/mouse/AnySyntaxTest.scala index b8c5a7b3..8fb295c4 100644 --- a/shared/src/test/scala/mouse/AnySyntaxTest.scala +++ b/shared/src/test/scala/mouse/AnySyntaxTest.scala @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022 Typelevel + * Copyright (c) 2016 Typelevel * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in diff --git a/shared/src/test/scala/mouse/BooleanSyntaxTest.scala b/shared/src/test/scala/mouse/BooleanSyntaxTest.scala index 75aa417d..11516c72 100644 --- a/shared/src/test/scala/mouse/BooleanSyntaxTest.scala +++ b/shared/src/test/scala/mouse/BooleanSyntaxTest.scala @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022 Typelevel + * Copyright (c) 2016 Typelevel * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in diff --git a/shared/src/test/scala/mouse/DoubleSyntaxTest.scala b/shared/src/test/scala/mouse/DoubleSyntaxTest.scala index 02f2a434..1f741344 100644 --- a/shared/src/test/scala/mouse/DoubleSyntaxTest.scala +++ b/shared/src/test/scala/mouse/DoubleSyntaxTest.scala @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022 Typelevel + * Copyright (c) 2016 Typelevel * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in diff --git a/shared/src/test/scala/mouse/FBooleanSyntaxTests.scala b/shared/src/test/scala/mouse/FBooleanSyntaxTests.scala index 98e6ffee..082f7812 100644 --- a/shared/src/test/scala/mouse/FBooleanSyntaxTests.scala +++ b/shared/src/test/scala/mouse/FBooleanSyntaxTests.scala @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022 Typelevel + * Copyright (c) 2016 Typelevel * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in diff --git a/shared/src/test/scala/mouse/FEitherSyntaxTest.scala b/shared/src/test/scala/mouse/FEitherSyntaxTest.scala index d012bbda..4cb632e1 100644 --- a/shared/src/test/scala/mouse/FEitherSyntaxTest.scala +++ b/shared/src/test/scala/mouse/FEitherSyntaxTest.scala @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022 Typelevel + * Copyright (c) 2016 Typelevel * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in diff --git a/shared/src/test/scala/mouse/FNestedSyntaxTest.scala b/shared/src/test/scala/mouse/FNestedSyntaxTest.scala index cf944047..29b30ac5 100644 --- a/shared/src/test/scala/mouse/FNestedSyntaxTest.scala +++ b/shared/src/test/scala/mouse/FNestedSyntaxTest.scala @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022 Typelevel + * Copyright (c) 2016 Typelevel * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in diff --git a/shared/src/test/scala/mouse/FOptionSyntaxTest.scala b/shared/src/test/scala/mouse/FOptionSyntaxTest.scala index df066957..bab9ff57 100644 --- a/shared/src/test/scala/mouse/FOptionSyntaxTest.scala +++ b/shared/src/test/scala/mouse/FOptionSyntaxTest.scala @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022 Typelevel + * Copyright (c) 2016 Typelevel * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in diff --git a/shared/src/test/scala/mouse/FTupleNSyntaxSuite.scala b/shared/src/test/scala/mouse/FTupleNSyntaxSuite.scala index 82f93078..5811fa8d 100644 --- a/shared/src/test/scala/mouse/FTupleNSyntaxSuite.scala +++ b/shared/src/test/scala/mouse/FTupleNSyntaxSuite.scala @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022 Typelevel + * Copyright (c) 2016 Typelevel * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in diff --git a/shared/src/test/scala/mouse/IntSyntaxTest.scala b/shared/src/test/scala/mouse/IntSyntaxTest.scala index 31d7c612..800340f0 100644 --- a/shared/src/test/scala/mouse/IntSyntaxTest.scala +++ b/shared/src/test/scala/mouse/IntSyntaxTest.scala @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022 Typelevel + * Copyright (c) 2016 Typelevel * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in diff --git a/shared/src/test/scala/mouse/LongSyntaxTest.scala b/shared/src/test/scala/mouse/LongSyntaxTest.scala index e6f46d79..19cd0631 100644 --- a/shared/src/test/scala/mouse/LongSyntaxTest.scala +++ b/shared/src/test/scala/mouse/LongSyntaxTest.scala @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022 Typelevel + * Copyright (c) 2016 Typelevel * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in diff --git a/shared/src/test/scala/mouse/MapSyntaxTest.scala b/shared/src/test/scala/mouse/MapSyntaxTest.scala index d4c1c9d2..1ac6d6ca 100644 --- a/shared/src/test/scala/mouse/MapSyntaxTest.scala +++ b/shared/src/test/scala/mouse/MapSyntaxTest.scala @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022 Typelevel + * Copyright (c) 2016 Typelevel * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in diff --git a/shared/src/test/scala/mouse/OptionSyntaxTest.scala b/shared/src/test/scala/mouse/OptionSyntaxTest.scala index 203505a9..a345180d 100644 --- a/shared/src/test/scala/mouse/OptionSyntaxTest.scala +++ b/shared/src/test/scala/mouse/OptionSyntaxTest.scala @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022 Typelevel + * Copyright (c) 2016 Typelevel * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in diff --git a/shared/src/test/scala/mouse/PartialFunctionLiftTest.scala b/shared/src/test/scala/mouse/PartialFunctionLiftTest.scala index 89cbacbc..8d9a7b01 100644 --- a/shared/src/test/scala/mouse/PartialFunctionLiftTest.scala +++ b/shared/src/test/scala/mouse/PartialFunctionLiftTest.scala @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022 Typelevel + * Copyright (c) 2016 Typelevel * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in diff --git a/shared/src/test/scala/mouse/StringSyntaxTests.scala b/shared/src/test/scala/mouse/StringSyntaxTests.scala index e0234531..b17df133 100644 --- a/shared/src/test/scala/mouse/StringSyntaxTests.scala +++ b/shared/src/test/scala/mouse/StringSyntaxTests.scala @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022 Typelevel + * Copyright (c) 2016 Typelevel * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in diff --git a/shared/src/test/scala/mouse/TrySyntaxTest.scala b/shared/src/test/scala/mouse/TrySyntaxTest.scala index 9f3b150b..35a706b0 100644 --- a/shared/src/test/scala/mouse/TrySyntaxTest.scala +++ b/shared/src/test/scala/mouse/TrySyntaxTest.scala @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022 Typelevel + * Copyright (c) 2016 Typelevel * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in From 1574de2fc122b794bca010683f0fffcd5a314d12 Mon Sep 17 00:00:00 2001 From: danicheg Date: Tue, 3 May 2022 13:48:48 +0300 Subject: [PATCH 08/10] Fix compilation --- build.sbt | 5 +++-- jvm/src/test/scala/mouse/StringJvmTests.scala | 8 -------- shared/src/test/scala/mouse/AnyFSyntaxTest.scala | 1 - 3 files changed, 3 insertions(+), 11 deletions(-) diff --git a/build.sbt b/build.sbt index f20be3e6..06bcf3fd 100644 --- a/build.sbt +++ b/build.sbt @@ -33,11 +33,12 @@ lazy val cross = crossProject(JSPlatform, JVMPlatform) developers := List( Developer("benhutchison", "Ben Hutchison", "brhutchison@gmail.com", url = url("https://github.com/benhutchison")) ), - scalacOptions ++= Seq("-feature", "-deprecation", "-language:implicitConversions", "-language:higherKinds"), + scalacOptions ++= + (if (tlIsScala3.value) Nil + else Seq("-language:implicitConversions", "-language:higherKinds")), scalacOptions ++= { scalaVersion.value match { case v if v.startsWith("2.12") => Seq("-Ypartial-unification") - case v if v.startsWith("3") => Seq("-source", "3.0-migration") case _ => Nil } }, diff --git a/jvm/src/test/scala/mouse/StringJvmTests.scala b/jvm/src/test/scala/mouse/StringJvmTests.scala index 47359999..0d6040b6 100644 --- a/jvm/src/test/scala/mouse/StringJvmTests.scala +++ b/jvm/src/test/scala/mouse/StringJvmTests.scala @@ -22,7 +22,6 @@ package mouse import java.net.{MalformedURLException, URI, URISyntaxException, URL} -import cats.Eq import cats.syntax.all._ import java.util.UUID @@ -33,13 +32,6 @@ class StringJvmTests extends MouseSuite with StringJvmSyntax { } test("parseURL") { - implicit val urlEq: Eq[URL] = Eq.fromUniversalEquals - implicit val malformedURLExceptionEq: Eq[MalformedURLException] = - new Eq[MalformedURLException] { - override def eqv(x: MalformedURLException, y: MalformedURLException): Boolean = - x.getMessage == y.getMessage - } - assertEquals( "http://example.com".parseURL, new URL("http://example.com").asRight[MalformedURLException] diff --git a/shared/src/test/scala/mouse/AnyFSyntaxTest.scala b/shared/src/test/scala/mouse/AnyFSyntaxTest.scala index 646bb319..9db0a7be 100644 --- a/shared/src/test/scala/mouse/AnyFSyntaxTest.scala +++ b/shared/src/test/scala/mouse/AnyFSyntaxTest.scala @@ -24,7 +24,6 @@ package mouse import cats.data.EitherT import cats.data.OptionT import cats.syntax.option._ -import cats.syntax.functor._ import cats.syntax.either._ import cats.{~>, Id} From 20b7bcf7423d5be16b16a6dd9f0df1880141b2fe Mon Sep 17 00:00:00 2001 From: danicheg Date: Tue, 3 May 2022 14:12:49 +0300 Subject: [PATCH 09/10] Fix site generating --- docs/index.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/index.md b/docs/index.md index 468b0ed5..02b1726b 100644 --- a/docs/index.md +++ b/docs/index.md @@ -65,13 +65,13 @@ res0.cata(msg => s"Message received: ${msg}", "No message") val t1 = scala.util.Try(new java.net.URL("https://www.github.com")) -t1.cata(msg => s"URL is valid!", error => s"URL is invalid: ${error.getMessage}") +t1.cata(_ => s"URL is valid!", error => s"URL is invalid: ${error.getMessage}") t1.toEither val t2 = scala.util.Try(new java.net.URL("https//www.github.com")) -t2.cata(msg => s"URL is valid!", error => s"URL is invalid: ${error.getMessage}") +t2.cata(_ => s"URL is valid!", error => s"URL is invalid: ${error.getMessage}") t2.toEither From d36936a90bce2496907d08789b07341e0dd9d41f Mon Sep 17 00:00:00 2001 From: danicheg Date: Tue, 3 May 2022 22:36:45 +0300 Subject: [PATCH 10/10] Ascribe the Typelevel in LICENSE.txt --- LICENSE | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LICENSE b/LICENSE index 4a7e618f..6ca87449 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2016 Ben Hutchison +Copyright (c) 2016 Typelevel Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal