From 41001cdb9167a7bd6a595b289429b3e29fa38f73 Mon Sep 17 00:00:00 2001 From: satorg Date: Fri, 15 Nov 2024 08:46:07 -0800 Subject: [PATCH 1/3] re-enable 'dialectOverride.allowStarWildcardImport' --- .scalafmt.conf | 1 - 1 file changed, 1 deletion(-) diff --git a/.scalafmt.conf b/.scalafmt.conf index a530097004..c4fe176ad7 100644 --- a/.scalafmt.conf +++ b/.scalafmt.conf @@ -29,5 +29,4 @@ project.excludeFilters = [ rewrite.scala3.convertToNewSyntax = true runner.dialectOverride.allowSignificantIndentation = false runner.dialectOverride.allowAsForImportRename = false -runner.dialectOverride.allowStarWildcardImport = false runner.dialectOverride.allowPostfixStarVarargSplices = false From aff5069bf3cee3075c5a59400b0d2b035f898b8c Mon Sep 17 00:00:00 2001 From: satorg Date: Fri, 15 Nov 2024 08:47:08 -0800 Subject: [PATCH 2/3] apply 'scalafmtAll' --- .../scala/algebra/instances/bigDecimal.scala | 2 +- .../main/scala/algebra/instances/bigInt.scala | 2 +- .../main/scala/algebra/instances/bitSet.scala | 2 +- .../main/scala/algebra/instances/byte.scala | 4 +- .../main/scala/algebra/instances/int.scala | 4 +- .../main/scala/algebra/instances/long.scala | 4 +- .../main/scala/algebra/instances/map.scala | 2 +- .../main/scala/algebra/instances/short.scala | 4 +- .../test/scala/algebra/ring/RingTest.scala | 4 +- .../main/scala/algebra/laws/BaseLaws.scala | 2 +- .../scala/algebra/laws/DeMorganLaws.scala | 6 +-- .../main/scala/algebra/laws/GroupLaws.scala | 6 +-- .../main/scala/algebra/laws/LatticeLaws.scala | 6 +-- .../laws/LatticePartialOrderLaws.scala | 8 ++-- .../main/scala/algebra/laws/LogicLaws.scala | 4 +- .../main/scala/algebra/laws/OrderLaws.scala | 6 +-- .../main/scala/algebra/laws/RingLaws.scala | 6 +-- .../src/main/scala/algebra/laws/Rules.scala | 6 +-- .../src/main/scala/algebra/laws/package.scala | 2 +- .../test/scala/algebra/laws/FPApprox.scala | 4 +- .../test/scala/algebra/laws/LawTests.scala | 6 +-- .../src/test/scala/algebra/laws/Rat.scala | 2 +- .../src/main/scala/alleycats/Empty.scala | 2 +- .../src/main/scala/alleycats/One.scala | 2 +- .../src/main/scala/alleycats/Zero.scala | 2 +- .../src/main/scala/alleycats/std/map.scala | 2 +- .../src/main/scala/alleycats/std/set.scala | 2 +- .../scala/alleycats/syntax/foldable.scala | 2 +- .../laws/discipline/FlatMapRecTests.scala | 6 +-- .../laws/discipline/ReferentialEqTests.scala | 2 +- .../discipline/SystemIdentityHashTests.scala | 2 +- .../alleycats/tests/AlleycatsSuite.scala | 4 +- .../scala/alleycats/tests/IterableTests.scala | 4 +- .../test/scala/alleycats/tests/MapSuite.scala | 4 +- .../test/scala/alleycats/tests/SetSuite.scala | 8 ++-- .../cats/bench/CollectionMonoidBench.scala | 2 +- .../scala/cats/bench/EitherKMapBench.scala | 2 +- .../src/main/scala/cats/bench/FoldBench.scala | 8 ++-- .../main/scala/cats/bench/FoldMapABench.scala | 8 ++-- .../scala/cats/bench/MapMonoidBench.scala | 6 +-- .../scala/cats/bench/ParTraverseBench.scala | 6 +-- .../main/scala/cats/bench/StateTBench.scala | 2 +- .../scala/cats/bench/TrampolineBench.scala | 4 +- .../bench/UnorderedTraverseMapBench.scala | 2 +- .../main/scala-2/catsBC/MimaExceptions.scala | 2 +- ...calaVersionSpecificParallelInstances.scala | 2 +- .../scala-2.12/cats/instances/stream.scala | 4 +- .../cats/data/NonEmptyLazyList.scala | 2 +- ...calaVersionSpecificParallelInstances.scala | 2 +- .../scala-2.13+/cats/instances/lazyList.scala | 4 +- .../scala-2.13+/cats/instances/stream.scala | 4 +- .../scala-2/cats/arrow/FunctionKMacros.scala | 2 +- core/src/main/scala/cats/Alternative.scala | 2 +- core/src/main/scala/cats/Bifoldable.scala | 2 +- core/src/main/scala/cats/Foldable.scala | 6 +-- core/src/main/scala/cats/Invariant.scala | 4 +- core/src/main/scala/cats/MonoidK.scala | 2 +- core/src/main/scala/cats/SemigroupK.scala | 2 +- core/src/main/scala/cats/Traverse.scala | 2 +- core/src/main/scala/cats/TraverseFilter.scala | 2 +- core/src/main/scala/cats/data/AndThen.scala | 2 +- core/src/main/scala/cats/data/Binested.scala | 2 +- core/src/main/scala/cats/data/Chain.scala | 2 +- core/src/main/scala/cats/data/Cokleisli.scala | 2 +- core/src/main/scala/cats/data/EitherK.scala | 2 +- core/src/main/scala/cats/data/Kleisli.scala | 2 +- .../main/scala/cats/data/NonEmptyChain.scala | 2 +- .../scala/cats/data/NonEmptyMapImpl.scala | 4 +- .../main/scala/cats/data/NonEmptySeq.scala | 2 +- .../main/scala/cats/data/NonEmptySet.scala | 6 +-- .../main/scala/cats/data/NonEmptyVector.scala | 2 +- core/src/main/scala/cats/data/OneAnd.scala | 4 +- core/src/main/scala/cats/data/Op.scala | 2 +- core/src/main/scala/cats/data/ZipList.scala | 2 +- core/src/main/scala/cats/data/ZipSeq.scala | 2 +- core/src/main/scala/cats/data/ZipVector.scala | 2 +- core/src/main/scala/cats/evidence/As.scala | 2 +- core/src/main/scala/cats/evidence/Is.scala | 4 +- .../main/scala/cats/instances/either.scala | 2 +- .../main/scala/cats/instances/invariant.scala | 4 +- core/src/main/scala/cats/instances/list.scala | 2 +- .../main/scala/cats/instances/option.scala | 2 +- .../src/main/scala/cats/instances/order.scala | 2 +- .../main/scala/cats/instances/ordering.scala | 2 +- .../main/scala/cats/instances/parallel.scala | 2 +- .../scala/cats/instances/partialOrder.scala | 2 +- .../src/main/scala/cats/instances/queue.scala | 2 +- core/src/main/scala/cats/instances/seq.scala | 2 +- .../main/scala/cats/instances/sortedMap.scala | 2 +- .../main/scala/cats/instances/vector.scala | 2 +- core/src/main/scala/cats/syntax/either.scala | 4 +- .../scala/cats/free/FreeApplicative.scala | 2 +- free/src/main/scala/cats/free/FreeT.scala | 2 +- .../cats/free/FreeStructuralSuite.scala | 4 +- .../test/scala/cats/free/CofreeSuite.scala | 8 ++-- .../free/ContravariantCoyonedaSuite.scala | 6 +-- .../test/scala/cats/free/CoyonedaSuite.scala | 6 +-- .../cats/free/FreeApplicativeSuite.scala | 10 ++--- .../free/FreeInvariantMonoidalSuite.scala | 14 +++---- free/src/test/scala/cats/free/FreeSuite.scala | 12 +++--- .../src/test/scala/cats/free/FreeTSuite.scala | 28 ++++++------- .../cats/free/InvariantCoyonedaSuite.scala | 6 +-- .../test/scala/cats/free/YonedaSuite.scala | 6 +-- .../scala/cats/kernel/laws/HashLaws.scala | 2 +- .../cats/kernel/laws/PartialOrderLaws.scala | 2 +- .../kernel/laws/discipline/BoundedTests.scala | 2 +- .../laws/discipline/EnumerableTests.scala | 2 +- .../cats/kernel/laws/discipline/EqTests.scala | 2 +- .../kernel/laws/discipline/HashTests.scala | 2 +- .../kernel/laws/discipline/MonoidTests.scala | 2 +- .../kernel/laws/discipline/OrderTests.scala | 2 +- .../laws/discipline/PartialOrderTests.scala | 2 +- .../laws/discipline/SemigroupTests.scala | 2 +- .../laws/ScalaVersionSpecificTests.scala | 6 +-- .../scala/cats/kernel/laws/LawTests.scala | 8 ++-- .../cats/kernel/compat/HashCompat.scala | 8 ++-- .../cats/kernel/compat/HashCompat.scala | 4 +- .../kernel/instances/ArraySeqInstances.scala | 2 +- kernel/src/main/scala/cats/kernel/Eq.scala | 2 +- .../src/main/scala/cats/kernel/Monoid.scala | 2 +- .../main/scala/cats/kernel/PartialOrder.scala | 2 +- .../main/scala/cats/kernel/Semigroup.scala | 2 +- .../kernel/instances/FunctionInstances.scala | 2 +- .../cats/kernel/instances/ListInstances.scala | 2 +- .../cats/kernel/instances/MapInstances.scala | 4 +- .../kernel/instances/QueueInstances.scala | 2 +- .../cats/kernel/instances/SeqInstances.scala | 2 +- .../kernel/instances/SortedMapInstances.scala | 2 +- .../kernel/instances/SortedSetInstances.scala | 2 +- .../cats/kernel/instances/StaticMethods.scala | 6 +-- .../kernel/instances/StringInstances.scala | 2 +- .../cats/kernel/instances/UnitInstances.scala | 2 +- .../kernel/instances/VectorInstances.scala | 2 +- laws/src/main/scala/cats/laws/AlignLaws.scala | 4 +- .../scala/cats/laws/AlternativeLaws.scala | 4 +- .../scala/cats/laws/ApplicativeLaws.scala | 4 +- laws/src/main/scala/cats/laws/ApplyLaws.scala | 4 +- .../scala/cats/laws/ArrowChoiceLaws.scala | 6 +-- laws/src/main/scala/cats/laws/ArrowLaws.scala | 8 ++-- .../main/scala/cats/laws/BifunctorLaws.scala | 2 +- .../main/scala/cats/laws/CategoryLaws.scala | 2 +- .../src/main/scala/cats/laws/ChoiceLaws.scala | 4 +- .../main/scala/cats/laws/CoflatMapLaws.scala | 2 +- .../cats/laws/CommutativeArrowLaws.scala | 4 +- .../main/scala/cats/laws/ComonadLaws.scala | 2 +- .../main/scala/cats/laws/ComposeLaws.scala | 2 +- .../scala/cats/laws/ContravariantLaws.scala | 2 +- .../cats/laws/ContravariantMonoidalLaws.scala | 4 +- .../laws/ContravariantSemigroupalLaws.scala | 2 +- .../scala/cats/laws/DistributiveLaws.scala | 2 +- .../main/scala/cats/laws/FlatMapLaws.scala | 6 +-- .../main/scala/cats/laws/FoldableLaws.scala | 2 +- .../main/scala/cats/laws/FunctorLaws.scala | 2 +- .../main/scala/cats/laws/InvariantLaws.scala | 2 +- .../cats/laws/InvariantMonoidalLaws.scala | 4 +- .../cats/laws/InvariantSemigroupalLaws.scala | 4 +- laws/src/main/scala/cats/laws/MonadLaws.scala | 2 +- .../cats/laws/NonEmptyAlternativeLaws.scala | 2 +- .../cats/laws/NonEmptyTraverseLaws.scala | 4 +- .../main/scala/cats/laws/ProfunctorLaws.scala | 2 +- .../main/scala/cats/laws/ReducibleLaws.scala | 2 +- .../scala/cats/laws/ShortCircuitingLaws.scala | 10 ++--- .../src/main/scala/cats/laws/StrongLaws.scala | 4 +- .../scala/cats/laws/TraverseFilterLaws.scala | 4 +- .../main/scala/cats/laws/TraverseLaws.scala | 4 +- .../cats/laws/discipline/AlignTests.scala | 2 +- .../laws/discipline/AlternativeTests.scala | 2 +- .../discipline/ApplicativeErrorTests.scala | 2 +- .../laws/discipline/ApplicativeTests.scala | 2 +- .../laws/discipline/ArrowChoiceTests.scala | 4 +- .../cats/laws/discipline/ArrowTests.scala | 2 +- .../laws/discipline/BifoldableTests.scala | 2 +- .../cats/laws/discipline/BifunctorTests.scala | 2 +- .../cats/laws/discipline/BimonadTests.scala | 2 +- .../cats/laws/discipline/CategoryTests.scala | 2 +- .../cats/laws/discipline/ChoiceTests.scala | 2 +- .../cats/laws/discipline/CoflatMapTests.scala | 2 +- .../discipline/CommutativeApplyTests.scala | 2 +- .../discipline/CommutativeArrowTests.scala | 2 +- .../discipline/CommutativeFlatMapTests.scala | 2 +- .../cats/laws/discipline/ComonadTests.scala | 2 +- .../cats/laws/discipline/ComposeTests.scala | 2 +- .../laws/discipline/ContravariantTests.scala | 2 +- .../cats/laws/discipline/DeferTests.scala | 2 +- .../laws/discipline/DistributiveTests.scala | 2 +- .../main/scala/cats/laws/discipline/Eq.scala | 10 ++--- .../cats/laws/discipline/FlatMapTests.scala | 4 +- .../cats/laws/discipline/FoldableTests.scala | 4 +- .../cats/laws/discipline/FunctorTests.scala | 2 +- .../cats/laws/discipline/InjectKTests.scala | 2 +- .../cats/laws/discipline/InjectTests.scala | 2 +- .../cats/laws/discipline/InvariantTests.scala | 2 +- .../scala/cats/laws/discipline/MiniInt.scala | 4 +- .../cats/laws/discipline/MonadTests.scala | 2 +- .../cats/laws/discipline/MonoidKTests.scala | 2 +- .../discipline/NonEmptyAlternativeTests.scala | 2 +- .../laws/discipline/ProfunctorTests.scala | 2 +- .../cats/laws/discipline/ReducibleTests.scala | 4 +- .../laws/discipline/RepresentableTests.scala | 2 +- .../laws/discipline/SemigroupKTests.scala | 2 +- .../laws/discipline/SemigroupalTests.scala | 4 +- .../cats/laws/discipline/StrongTests.scala | 2 +- .../laws/discipline/TraverseFilterTests.scala | 2 +- .../cats/laws/discipline/TraverseTests.scala | 4 +- .../discipline/UnorderedFoldableTests.scala | 4 +- .../discipline/UnorderedTraverseTests.scala | 2 +- .../cats/laws/discipline/arbitrary.scala | 4 +- .../laws/discipline/MonadTestsTests.scala | 4 +- project/AlgebraBoilerplate.scala | 6 +-- project/Boilerplate.scala | 24 +++++------ project/KernelBoiler.scala | 40 +++++++++---------- project/TupleBifunctorInstancesBoiler.scala | 6 +-- project/TupleBitraverseInstancesBoiler.scala | 6 +-- project/TupleMonadInstancesBoiler.scala | 6 +-- project/TupleShowInstancesBoiler.scala | 6 +-- ...upleUnorderedFoldableInstancesBoiler.scala | 6 +-- .../src/main/scala/cats/tests/Helpers.scala | 2 +- .../test/scala/cats/js/instances/future.scala | 2 +- .../test/scala/cats/tests/FutureTests.scala | 8 ++-- .../test/scala/cats/tests/FutureSuite.scala | 8 ++-- .../cats/tests/NonEmptyStreamSuite.scala | 14 +++---- .../cats/tests/ScalaVersionSpecific.scala | 4 +- .../cats/tests/ArraySeqSuite.scala | 8 ++-- .../cats/tests/LazyListSuite.scala | 14 +++---- .../cats/tests/NonEmptyLazyListSuite.scala | 14 +++---- .../cats/tests/ScalaVersionSpecific.scala | 10 ++--- .../cats/tests/FunctionKLiftSuite.scala | 6 +-- .../cats/tests/FunctionKLiftSuite.scala | 6 +-- .../cats/tests/AlgebraInvariantSuite.scala | 14 +++---- .../scala/cats/tests/AlternativeSuite.scala | 4 +- .../test/scala/cats/tests/AndThenSuite.scala | 8 ++-- .../cats/tests/ApplicativeErrorSuite.scala | 8 ++-- .../scala/cats/tests/ApplicativeSuite.scala | 10 ++--- .../src/test/scala/cats/tests/AsSuite.scala | 2 +- .../scala/cats/tests/BifoldableSuite.scala | 4 +- .../BinCodecInvariantMonoidalSuite.scala | 10 ++--- .../test/scala/cats/tests/BinestedSuite.scala | 14 +++---- .../test/scala/cats/tests/BitSetSuite.scala | 6 +-- .../cats/tests/BoundedEnumerableSuite.scala | 2 +- .../test/scala/cats/tests/ChainSuite.scala | 12 +++--- .../scala/cats/tests/CokleisliSuite.scala | 12 +++--- .../test/scala/cats/tests/ComposeSuite.scala | 4 +- .../test/scala/cats/tests/ConstSuite.scala | 12 +++--- .../test/scala/cats/tests/ContTSuite.scala | 8 ++-- .../scala/cats/tests/ContravariantSuite.scala | 6 +-- .../test/scala/cats/tests/DurationSuite.scala | 2 +- .../test/scala/cats/tests/EitherKSuite.scala | 12 +++--- .../test/scala/cats/tests/EitherSuite.scala | 20 +++++----- .../test/scala/cats/tests/EitherTSuite.scala | 16 ++++---- .../src/test/scala/cats/tests/EqSuite.scala | 4 +- .../test/scala/cats/tests/EquivSuite.scala | 6 +-- .../src/test/scala/cats/tests/EvalSuite.scala | 6 +-- .../test/scala/cats/tests/EvidenceSuite.scala | 2 +- .../cats/tests/FiniteDurationSuite.scala | 2 +- .../test/scala/cats/tests/FoldableSuite.scala | 14 +++---- .../src/test/scala/cats/tests/FuncSuite.scala | 8 ++-- .../tests/FunctionKLiftCrossBuildSuite.scala | 4 +- .../scala/cats/tests/FunctionKSuite.scala | 4 +- .../test/scala/cats/tests/FunctionSuite.scala | 14 +++---- .../test/scala/cats/tests/FunctorSuite.scala | 8 ++-- .../test/scala/cats/tests/GroupSuite.scala | 2 +- .../src/test/scala/cats/tests/HashSuite.scala | 6 +-- .../src/test/scala/cats/tests/IdSuite.scala | 10 ++--- .../src/test/scala/cats/tests/IdTSuite.scala | 10 ++--- .../IndexedReaderWriterStateTSuite.scala | 20 +++++----- .../scala/cats/tests/IndexedStateTSuite.scala | 14 +++---- .../test/scala/cats/tests/InjectKSuite.scala | 6 +-- .../test/scala/cats/tests/InjectSuite.scala | 4 +- .../src/test/scala/cats/tests/IorSuite.scala | 8 ++-- .../src/test/scala/cats/tests/IorTSuite.scala | 10 ++--- .../src/test/scala/cats/tests/IsSuite.scala | 2 +- .../cats/tests/KernelContravariantSuite.scala | 6 +-- .../test/scala/cats/tests/KleisliSuite.scala | 14 +++---- .../src/test/scala/cats/tests/ListSuite.scala | 14 +++---- .../src/test/scala/cats/tests/MapSuite.scala | 6 +-- .../test/scala/cats/tests/MiniIntSuite.scala | 10 ++--- .../scala/cats/tests/MonadErrorSuite.scala | 6 +-- .../test/scala/cats/tests/MonadSuite.scala | 8 ++-- .../test/scala/cats/tests/MonoidSuite.scala | 2 +- .../test/scala/cats/tests/NestedSuite.scala | 14 +++---- .../scala/cats/tests/NonEmptyChainSuite.scala | 14 +++---- .../cats/tests/NonEmptyCollectionSuite.scala | 4 +- .../scala/cats/tests/NonEmptyListSuite.scala | 16 ++++---- .../scala/cats/tests/NonEmptyMapSuite.scala | 20 +++++----- .../scala/cats/tests/NonEmptySeqSuite.scala | 10 ++--- .../scala/cats/tests/NonEmptySetSuite.scala | 14 +++---- .../cats/tests/NonEmptyVectorSuite.scala | 16 ++++---- .../test/scala/cats/tests/OneAndSuite.scala | 10 ++--- .../src/test/scala/cats/tests/OpSuite.scala | 8 ++-- .../test/scala/cats/tests/OptionSuite.scala | 14 +++---- .../test/scala/cats/tests/OptionTSuite.scala | 22 +++++----- .../test/scala/cats/tests/OrderSuite.scala | 8 ++-- .../test/scala/cats/tests/OrderingSuite.scala | 6 +-- .../test/scala/cats/tests/ParallelSuite.scala | 16 ++++---- .../cats/tests/PartialFunctionSuite.scala | 4 +- .../scala/cats/tests/PartialOrderSuite.scala | 8 ++-- .../cats/tests/PartialOrderingSuite.scala | 6 +-- .../test/scala/cats/tests/QueueSuite.scala | 6 +-- .../scala/cats/tests/ReducibleSuite.scala | 6 +-- .../scala/cats/tests/RegressionSuite.scala | 8 ++-- .../cats/tests/RepresentableStoreSuite.scala | 6 +-- .../cats/tests/RepresentableStoreTSuite.scala | 12 +++--- .../scala/cats/tests/RepresentableSuite.scala | 8 ++-- .../scala/cats/tests/SemigroupKSuite.scala | 2 +- .../scala/cats/tests/SemigroupSuite.scala | 4 +- .../src/test/scala/cats/tests/SeqSuite.scala | 12 +++--- .../src/test/scala/cats/tests/SetSuite.scala | 6 +-- .../scala/cats/tests/SortedMapSuite.scala | 8 ++-- .../scala/cats/tests/SortedSetSuite.scala | 8 ++-- .../test/scala/cats/tests/SplitSuite.scala | 2 +- .../test/scala/cats/tests/StreamSuite.scala | 10 ++--- .../cats/tests/SyntaxSerializationSuite.scala | 2 +- .../test/scala/cats/tests/SyntaxSuite.scala | 4 +- .../cats/tests/TraverseFilterSuite.scala | 2 +- .../test/scala/cats/tests/TraverseSuite.scala | 8 ++-- .../src/test/scala/cats/tests/TrySuite.scala | 12 +++--- .../test/scala/cats/tests/Tuple2KSuite.scala | 12 +++--- .../test/scala/cats/tests/TupleSuite.scala | 10 ++--- .../cats/tests/UnorderedFoldableSuite.scala | 6 +-- .../cats/tests/UnorderedTraverseSuite.scala | 6 +-- .../scala/cats/tests/ValidatedSuite.scala | 16 ++++---- .../test/scala/cats/tests/VarianceSuite.scala | 4 +- .../test/scala/cats/tests/VectorSuite.scala | 14 +++---- .../scala/cats/tests/WordCountSuite.scala | 2 +- .../test/scala/cats/tests/WriterSuite.scala | 8 ++-- .../test/scala/cats/tests/WriterTSuite.scala | 14 +++---- 326 files changed, 874 insertions(+), 874 deletions(-) diff --git a/algebra-core/src/main/scala/algebra/instances/bigDecimal.scala b/algebra-core/src/main/scala/algebra/instances/bigDecimal.scala index e36e0438a7..8b17a88ba0 100644 --- a/algebra-core/src/main/scala/algebra/instances/bigDecimal.scala +++ b/algebra-core/src/main/scala/algebra/instances/bigDecimal.scala @@ -24,7 +24,7 @@ package instances import java.math.MathContext -import algebra.ring._ +import algebra.ring.* package object bigDecimal extends BigDecimalInstances diff --git a/algebra-core/src/main/scala/algebra/instances/bigInt.scala b/algebra-core/src/main/scala/algebra/instances/bigInt.scala index 56aa584d4f..bcd0426073 100644 --- a/algebra-core/src/main/scala/algebra/instances/bigInt.scala +++ b/algebra-core/src/main/scala/algebra/instances/bigInt.scala @@ -22,7 +22,7 @@ package algebra package instances -import algebra.ring._ +import algebra.ring.* package object bigInt extends BigIntInstances diff --git a/algebra-core/src/main/scala/algebra/instances/bitSet.scala b/algebra-core/src/main/scala/algebra/instances/bitSet.scala index b970848c56..5c2465991d 100644 --- a/algebra-core/src/main/scala/algebra/instances/bitSet.scala +++ b/algebra-core/src/main/scala/algebra/instances/bitSet.scala @@ -24,7 +24,7 @@ package instances import scala.collection.immutable.BitSet -import algebra.lattice._ +import algebra.lattice.* package object bitSet extends BitSetInstances diff --git a/algebra-core/src/main/scala/algebra/instances/byte.scala b/algebra-core/src/main/scala/algebra/instances/byte.scala index 85f5fd924f..f854aa7062 100644 --- a/algebra-core/src/main/scala/algebra/instances/byte.scala +++ b/algebra-core/src/main/scala/algebra/instances/byte.scala @@ -22,8 +22,8 @@ package algebra package instances -import algebra.lattice._ -import algebra.ring._ +import algebra.lattice.* +import algebra.ring.* package object byte extends ByteInstances diff --git a/algebra-core/src/main/scala/algebra/instances/int.scala b/algebra-core/src/main/scala/algebra/instances/int.scala index f9fff644d8..4bc6ced1ea 100644 --- a/algebra-core/src/main/scala/algebra/instances/int.scala +++ b/algebra-core/src/main/scala/algebra/instances/int.scala @@ -22,8 +22,8 @@ package algebra package instances -import algebra.lattice._ -import algebra.ring._ +import algebra.lattice.* +import algebra.ring.* package object int extends IntInstances diff --git a/algebra-core/src/main/scala/algebra/instances/long.scala b/algebra-core/src/main/scala/algebra/instances/long.scala index 0fb2061df3..64f19007fd 100644 --- a/algebra-core/src/main/scala/algebra/instances/long.scala +++ b/algebra-core/src/main/scala/algebra/instances/long.scala @@ -22,8 +22,8 @@ package algebra package instances -import algebra.lattice._ -import algebra.ring._ +import algebra.lattice.* +import algebra.ring.* package object long extends LongInstances diff --git a/algebra-core/src/main/scala/algebra/instances/map.scala b/algebra-core/src/main/scala/algebra/instances/map.scala index fc0ca634a4..e521f21496 100644 --- a/algebra-core/src/main/scala/algebra/instances/map.scala +++ b/algebra-core/src/main/scala/algebra/instances/map.scala @@ -25,7 +25,7 @@ package instances import scala.annotation.nowarn import scala.collection.mutable -import algebra.ring._ +import algebra.ring.* package object map extends MapInstances diff --git a/algebra-core/src/main/scala/algebra/instances/short.scala b/algebra-core/src/main/scala/algebra/instances/short.scala index a004493c02..f8628e2fcc 100644 --- a/algebra-core/src/main/scala/algebra/instances/short.scala +++ b/algebra-core/src/main/scala/algebra/instances/short.scala @@ -22,8 +22,8 @@ package algebra package instances -import algebra.lattice._ -import algebra.ring._ +import algebra.lattice.* +import algebra.ring.* package object short extends ShortInstances diff --git a/algebra-core/src/test/scala/algebra/ring/RingTest.scala b/algebra-core/src/test/scala/algebra/ring/RingTest.scala index 3be03abc4c..b17bdf5c88 100644 --- a/algebra-core/src/test/scala/algebra/ring/RingTest.scala +++ b/algebra-core/src/test/scala/algebra/ring/RingTest.scala @@ -21,9 +21,9 @@ package algebra.ring -import algebra.instances.bigInt._ +import algebra.instances.bigInt.* -import org.scalacheck.Prop._ +import org.scalacheck.Prop.* class RingTest extends munit.DisciplineSuite { test("Ring.defaultFromBigInt") { diff --git a/algebra-laws/shared/src/main/scala/algebra/laws/BaseLaws.scala b/algebra-laws/shared/src/main/scala/algebra/laws/BaseLaws.scala index c83ce69bae..743149f6a6 100644 --- a/algebra-laws/shared/src/main/scala/algebra/laws/BaseLaws.scala +++ b/algebra-laws/shared/src/main/scala/algebra/laws/BaseLaws.scala @@ -21,7 +21,7 @@ package algebra.laws -import cats.kernel._ +import cats.kernel.* import org.typelevel.discipline.Laws diff --git a/algebra-laws/shared/src/main/scala/algebra/laws/DeMorganLaws.scala b/algebra-laws/shared/src/main/scala/algebra/laws/DeMorganLaws.scala index a0ed8e8935..c9befc65bf 100644 --- a/algebra-laws/shared/src/main/scala/algebra/laws/DeMorganLaws.scala +++ b/algebra-laws/shared/src/main/scala/algebra/laws/DeMorganLaws.scala @@ -21,10 +21,10 @@ package algebra.laws -import algebra._ -import algebra.lattice._ +import algebra.* +import algebra.lattice.* import org.scalacheck.{Arbitrary, Prop} -import org.scalacheck.Prop._ +import org.scalacheck.Prop.* import org.typelevel.discipline.Laws @deprecated("Laws moved to LogicLaws", since = "2.7.0") diff --git a/algebra-laws/shared/src/main/scala/algebra/laws/GroupLaws.scala b/algebra-laws/shared/src/main/scala/algebra/laws/GroupLaws.scala index 75860c8bee..fad8a2b2cb 100644 --- a/algebra-laws/shared/src/main/scala/algebra/laws/GroupLaws.scala +++ b/algebra-laws/shared/src/main/scala/algebra/laws/GroupLaws.scala @@ -21,13 +21,13 @@ package algebra.laws -import cats.kernel._ -import cats.kernel.instances.option._ +import cats.kernel.* +import cats.kernel.instances.option.* import org.typelevel.discipline.Laws import org.scalacheck.{Arbitrary, Prop} -import org.scalacheck.Prop._ +import org.scalacheck.Prop.* @deprecated("Provided by cats.kernel.laws", since = "2.7.0") object GroupLaws { diff --git a/algebra-laws/shared/src/main/scala/algebra/laws/LatticeLaws.scala b/algebra-laws/shared/src/main/scala/algebra/laws/LatticeLaws.scala index 631ae07c13..df1cbdc5f2 100644 --- a/algebra-laws/shared/src/main/scala/algebra/laws/LatticeLaws.scala +++ b/algebra-laws/shared/src/main/scala/algebra/laws/LatticeLaws.scala @@ -21,11 +21,11 @@ package algebra.laws -import algebra._ -import algebra.lattice._ +import algebra.* +import algebra.lattice.* import org.scalacheck.{Arbitrary, Prop} -import org.scalacheck.Prop._ +import org.scalacheck.Prop.* import scala.annotation.nowarn object LatticeLaws { diff --git a/algebra-laws/shared/src/main/scala/algebra/laws/LatticePartialOrderLaws.scala b/algebra-laws/shared/src/main/scala/algebra/laws/LatticePartialOrderLaws.scala index f218e32eb2..06ec368410 100644 --- a/algebra-laws/shared/src/main/scala/algebra/laws/LatticePartialOrderLaws.scala +++ b/algebra-laws/shared/src/main/scala/algebra/laws/LatticePartialOrderLaws.scala @@ -21,15 +21,15 @@ package algebra.laws -import algebra._ -import algebra.lattice._ +import algebra.* +import algebra.lattice.* import org.typelevel.discipline.Laws import org.scalacheck.{Arbitrary, Prop} -import org.scalacheck.Prop._ +import org.scalacheck.Prop.* -import algebra.instances.boolean._ +import algebra.instances.boolean.* object LatticePartialOrderLaws { def apply[A: Eq: Arbitrary] = new LatticePartialOrderLaws[A] { diff --git a/algebra-laws/shared/src/main/scala/algebra/laws/LogicLaws.scala b/algebra-laws/shared/src/main/scala/algebra/laws/LogicLaws.scala index cbab31e3ad..55567567c4 100644 --- a/algebra-laws/shared/src/main/scala/algebra/laws/LogicLaws.scala +++ b/algebra-laws/shared/src/main/scala/algebra/laws/LogicLaws.scala @@ -21,11 +21,11 @@ package algebra.laws -import algebra._ +import algebra.* import algebra.lattice.{Bool, GenBool, Heyting} import org.scalacheck.{Arbitrary, Prop} -import org.scalacheck.Prop._ +import org.scalacheck.Prop.* import scala.annotation.nowarn object LogicLaws { diff --git a/algebra-laws/shared/src/main/scala/algebra/laws/OrderLaws.scala b/algebra-laws/shared/src/main/scala/algebra/laws/OrderLaws.scala index 80c3a6bc97..185eadd22a 100644 --- a/algebra-laws/shared/src/main/scala/algebra/laws/OrderLaws.scala +++ b/algebra-laws/shared/src/main/scala/algebra/laws/OrderLaws.scala @@ -21,14 +21,14 @@ package algebra.laws -import cats.kernel._ +import cats.kernel.* import org.typelevel.discipline.Laws import org.scalacheck.{Arbitrary, Cogen, Prop} -import org.scalacheck.Prop._ +import org.scalacheck.Prop.* -import cats.kernel.instances.all._ +import cats.kernel.instances.all.* import algebra.ring.Signed import algebra.ring.CommutativeRing import algebra.ring.TruncatedDivision diff --git a/algebra-laws/shared/src/main/scala/algebra/laws/RingLaws.scala b/algebra-laws/shared/src/main/scala/algebra/laws/RingLaws.scala index ba562dc476..fc00306f92 100644 --- a/algebra-laws/shared/src/main/scala/algebra/laws/RingLaws.scala +++ b/algebra-laws/shared/src/main/scala/algebra/laws/RingLaws.scala @@ -22,15 +22,15 @@ package algebra package laws -import algebra.ring._ +import algebra.ring.* import algebra.laws.platform.Platform import org.typelevel.discipline.Predicate import org.scalacheck.{Arbitrary, Prop} -import org.scalacheck.Arbitrary._ -import org.scalacheck.Prop._ +import org.scalacheck.Arbitrary.* +import org.scalacheck.Prop.* import scala.annotation.nowarn object RingLaws { diff --git a/algebra-laws/shared/src/main/scala/algebra/laws/Rules.scala b/algebra-laws/shared/src/main/scala/algebra/laws/Rules.scala index f75d8d6811..1e3de05814 100644 --- a/algebra-laws/shared/src/main/scala/algebra/laws/Rules.scala +++ b/algebra-laws/shared/src/main/scala/algebra/laws/Rules.scala @@ -21,10 +21,10 @@ package algebra.laws -import cats.kernel._ -import org.scalacheck.Prop._ +import cats.kernel.* +import org.scalacheck.Prop.* import org.scalacheck.{Arbitrary, Prop} -import cats.kernel.instances.boolean._ +import cats.kernel.instances.boolean.* import cats.kernel.laws.discipline.SerializableTests object Rules { diff --git a/algebra-laws/shared/src/main/scala/algebra/laws/package.scala b/algebra-laws/shared/src/main/scala/algebra/laws/package.scala index 9d3d7109e4..2f3672c3c2 100644 --- a/algebra-laws/shared/src/main/scala/algebra/laws/package.scala +++ b/algebra-laws/shared/src/main/scala/algebra/laws/package.scala @@ -21,7 +21,7 @@ package algebra -import org.scalacheck._ +import org.scalacheck.* import org.scalacheck.util.Pretty import Prop.{False, Proof, Result} diff --git a/algebra-laws/shared/src/test/scala/algebra/laws/FPApprox.scala b/algebra-laws/shared/src/test/scala/algebra/laws/FPApprox.scala index 320e78962e..c91ddad5cb 100644 --- a/algebra-laws/shared/src/test/scala/algebra/laws/FPApprox.scala +++ b/algebra-laws/shared/src/test/scala/algebra/laws/FPApprox.scala @@ -26,8 +26,8 @@ import java.math.MathContext import org.scalacheck.Arbitrary -import algebra._ -import algebra.ring._ +import algebra.* +import algebra.ring.* /** * A wrapper type for approximate floating point values like Float, Double, and diff --git a/algebra-laws/shared/src/test/scala/algebra/laws/LawTests.scala b/algebra-laws/shared/src/test/scala/algebra/laws/LawTests.scala index 54bab5251d..d31ee97341 100644 --- a/algebra-laws/shared/src/test/scala/algebra/laws/LawTests.scala +++ b/algebra-laws/shared/src/test/scala/algebra/laws/LawTests.scala @@ -22,9 +22,9 @@ package algebra package laws -import algebra.lattice._ -import algebra.ring._ -import algebra.instances.all._ +import algebra.lattice.* +import algebra.ring.* +import algebra.instances.all.* import algebra.instances.BigDecimalAlgebra import algebra.laws.platform.Platform diff --git a/algebra-laws/shared/src/test/scala/algebra/laws/Rat.scala b/algebra-laws/shared/src/test/scala/algebra/laws/Rat.scala index 1fa2a8c591..4a2dd5822d 100644 --- a/algebra-laws/shared/src/test/scala/algebra/laws/Rat.scala +++ b/algebra-laws/shared/src/test/scala/algebra/laws/Rat.scala @@ -23,7 +23,7 @@ package algebra package laws import algebra.lattice.DistributiveLattice -import algebra.ring._ +import algebra.ring.* import org.scalacheck.{Arbitrary, Gen} import org.scalacheck.Arbitrary.arbitrary diff --git a/alleycats-core/src/main/scala/alleycats/Empty.scala b/alleycats-core/src/main/scala/alleycats/Empty.scala index 7ae2bd74cc..c256171a32 100644 --- a/alleycats-core/src/main/scala/alleycats/Empty.scala +++ b/alleycats-core/src/main/scala/alleycats/Empty.scala @@ -22,7 +22,7 @@ package alleycats import cats.{Eq, Monoid} -import cats.syntax.eq._ +import cats.syntax.eq.* trait Empty[A] extends Serializable { def empty: A diff --git a/alleycats-core/src/main/scala/alleycats/One.scala b/alleycats-core/src/main/scala/alleycats/One.scala index 471f5b1e80..c13a3a3692 100644 --- a/alleycats-core/src/main/scala/alleycats/One.scala +++ b/alleycats-core/src/main/scala/alleycats/One.scala @@ -22,7 +22,7 @@ package alleycats import cats.Eq -import cats.syntax.eq._ +import cats.syntax.eq.* trait One[A] extends Serializable { def one: A diff --git a/alleycats-core/src/main/scala/alleycats/Zero.scala b/alleycats-core/src/main/scala/alleycats/Zero.scala index b99febe172..052dee1848 100644 --- a/alleycats-core/src/main/scala/alleycats/Zero.scala +++ b/alleycats-core/src/main/scala/alleycats/Zero.scala @@ -22,7 +22,7 @@ package alleycats import cats.Eq -import cats.syntax.eq._ +import cats.syntax.eq.* trait Zero[A] extends Serializable { def zero: A diff --git a/alleycats-core/src/main/scala/alleycats/std/map.scala b/alleycats-core/src/main/scala/alleycats/std/map.scala index 87f790780e..dea6b3bdc7 100644 --- a/alleycats-core/src/main/scala/alleycats/std/map.scala +++ b/alleycats-core/src/main/scala/alleycats/std/map.scala @@ -22,7 +22,7 @@ package alleycats package std -import cats._ +import cats.* import cats.data.Chain import cats.kernel.instances.StaticMethods.wrapMutableIndexedSeq diff --git a/alleycats-core/src/main/scala/alleycats/std/set.scala b/alleycats-core/src/main/scala/alleycats/std/set.scala index 9421e69aac..daf2fd8251 100644 --- a/alleycats-core/src/main/scala/alleycats/std/set.scala +++ b/alleycats-core/src/main/scala/alleycats/std/set.scala @@ -22,7 +22,7 @@ package alleycats package std -import alleycats.compat.scalaVersionSpecific._ +import alleycats.compat.scalaVersionSpecific.* import cats.{Alternative, Always, Applicative, Eval, Foldable, Monad, Monoid, Traverse, TraverseFilter} import scala.annotation.tailrec diff --git a/alleycats-core/src/main/scala/alleycats/syntax/foldable.scala b/alleycats-core/src/main/scala/alleycats/syntax/foldable.scala index 9ee4b03028..9631d1e736 100644 --- a/alleycats-core/src/main/scala/alleycats/syntax/foldable.scala +++ b/alleycats-core/src/main/scala/alleycats/syntax/foldable.scala @@ -23,7 +23,7 @@ package alleycats package syntax import cats.Foldable -import cats.syntax.foldable._ +import cats.syntax.foldable.* object foldable extends FoldableSyntax diff --git a/alleycats-laws/shared/src/main/scala/alleycats/laws/discipline/FlatMapRecTests.scala b/alleycats-laws/shared/src/main/scala/alleycats/laws/discipline/FlatMapRecTests.scala index 0dbffc607a..ceaf9dfaed 100644 --- a/alleycats-laws/shared/src/main/scala/alleycats/laws/discipline/FlatMapRecTests.scala +++ b/alleycats-laws/shared/src/main/scala/alleycats/laws/discipline/FlatMapRecTests.scala @@ -21,11 +21,11 @@ package alleycats.laws.discipline -import cats._ +import cats.* import cats.laws.FlatMapLaws -import cats.laws.discipline._ +import cats.laws.discipline.* import org.scalacheck.Arbitrary -import org.scalacheck.Prop._ +import org.scalacheck.Prop.* import org.typelevel.discipline.Laws trait FlatMapRecTests[F[_]] extends Laws { diff --git a/alleycats-laws/shared/src/main/scala/alleycats/laws/discipline/ReferentialEqTests.scala b/alleycats-laws/shared/src/main/scala/alleycats/laws/discipline/ReferentialEqTests.scala index dcd6b00042..03646673be 100644 --- a/alleycats-laws/shared/src/main/scala/alleycats/laws/discipline/ReferentialEqTests.scala +++ b/alleycats-laws/shared/src/main/scala/alleycats/laws/discipline/ReferentialEqTests.scala @@ -23,7 +23,7 @@ package alleycats.laws.discipline import cats.kernel.Eq import cats.kernel.laws.EqLaws -import cats.kernel.laws.discipline._ +import cats.kernel.laws.discipline.* import org.scalacheck.Arbitrary import org.scalacheck.Prop.forAll import org.typelevel.discipline.Laws diff --git a/alleycats-laws/shared/src/main/scala/alleycats/laws/discipline/SystemIdentityHashTests.scala b/alleycats-laws/shared/src/main/scala/alleycats/laws/discipline/SystemIdentityHashTests.scala index 61820862a1..f4a15b8f52 100644 --- a/alleycats-laws/shared/src/main/scala/alleycats/laws/discipline/SystemIdentityHashTests.scala +++ b/alleycats-laws/shared/src/main/scala/alleycats/laws/discipline/SystemIdentityHashTests.scala @@ -23,7 +23,7 @@ package alleycats.laws.discipline import cats.kernel.{Eq, Hash} import cats.kernel.laws.HashLaws -import cats.kernel.laws.discipline._ +import cats.kernel.laws.discipline.* import org.scalacheck.Arbitrary import org.scalacheck.Prop.forAll diff --git a/alleycats-laws/shared/src/test/scala/alleycats/tests/AlleycatsSuite.scala b/alleycats-laws/shared/src/test/scala/alleycats/tests/AlleycatsSuite.scala index b894e434ee..f99456bead 100644 --- a/alleycats-laws/shared/src/test/scala/alleycats/tests/AlleycatsSuite.scala +++ b/alleycats-laws/shared/src/test/scala/alleycats/tests/AlleycatsSuite.scala @@ -22,8 +22,8 @@ package alleycats.tests import alleycats.std.MapInstances -import cats._ -import cats.instances.all._ +import cats.* +import cats.instances.all.* import org.scalacheck.{Arbitrary, Gen} import org.scalacheck.Test.Parameters diff --git a/alleycats-laws/shared/src/test/scala/alleycats/tests/IterableTests.scala b/alleycats-laws/shared/src/test/scala/alleycats/tests/IterableTests.scala index 87277842b4..829ea009a8 100644 --- a/alleycats-laws/shared/src/test/scala/alleycats/tests/IterableTests.scala +++ b/alleycats-laws/shared/src/test/scala/alleycats/tests/IterableTests.scala @@ -21,9 +21,9 @@ package alleycats.tests -import alleycats.std.all._ +import alleycats.std.all.* import cats.{Eval, Foldable} -import cats.instances.all._ +import cats.instances.all.* import cats.laws.discipline.{TraverseFilterTests, TraverseTests} class IterableTests extends AlleycatsSuite { diff --git a/alleycats-laws/shared/src/test/scala/alleycats/tests/MapSuite.scala b/alleycats-laws/shared/src/test/scala/alleycats/tests/MapSuite.scala index b8bccda787..ca56753a8a 100644 --- a/alleycats-laws/shared/src/test/scala/alleycats/tests/MapSuite.scala +++ b/alleycats-laws/shared/src/test/scala/alleycats/tests/MapSuite.scala @@ -22,8 +22,8 @@ package alleycats.tests import cats.Traverse -import cats.instances.all._ -import cats.laws.discipline.arbitrary._ +import cats.instances.all.* +import cats.laws.discipline.arbitrary.* import cats.laws.discipline.{SerializableTests, ShortCircuitingTests, TraverseFilterTests} class MapSuite extends AlleycatsSuite { diff --git a/alleycats-laws/shared/src/test/scala/alleycats/tests/SetSuite.scala b/alleycats-laws/shared/src/test/scala/alleycats/tests/SetSuite.scala index c71091bc78..f4495d1cdf 100644 --- a/alleycats-laws/shared/src/test/scala/alleycats/tests/SetSuite.scala +++ b/alleycats-laws/shared/src/test/scala/alleycats/tests/SetSuite.scala @@ -21,13 +21,13 @@ package alleycats.tests -import alleycats.laws.discipline._ -import alleycats.std.all._ +import alleycats.laws.discipline.* +import alleycats.std.all.* import cats.{Alternative, Foldable} -import cats.instances.all._ +import cats.instances.all.* import cats.kernel.laws.discipline.SerializableTests import cats.laws.discipline.SemigroupalTests.Isomorphisms -import cats.laws.discipline.arbitrary._ +import cats.laws.discipline.arbitrary.* import cats.laws.discipline.{AlternativeTests, ShortCircuitingTests, TraverseFilterTests} class SetSuite extends AlleycatsSuite { diff --git a/bench/src/main/scala/cats/bench/CollectionMonoidBench.scala b/bench/src/main/scala/cats/bench/CollectionMonoidBench.scala index 0052e29752..3c2da248f8 100644 --- a/bench/src/main/scala/cats/bench/CollectionMonoidBench.scala +++ b/bench/src/main/scala/cats/bench/CollectionMonoidBench.scala @@ -22,7 +22,7 @@ package cats.bench import cats.data.Chain -import cats.syntax.all._ +import cats.syntax.all.* import org.openjdk.jmh.annotations.{Benchmark, Scope, State} @State(Scope.Thread) diff --git a/bench/src/main/scala/cats/bench/EitherKMapBench.scala b/bench/src/main/scala/cats/bench/EitherKMapBench.scala index cad50d56bb..37aea42590 100644 --- a/bench/src/main/scala/cats/bench/EitherKMapBench.scala +++ b/bench/src/main/scala/cats/bench/EitherKMapBench.scala @@ -23,7 +23,7 @@ package cats.bench import cats.Functor import cats.data.EitherK -import cats.syntax.all._ +import cats.syntax.all.* import org.openjdk.jmh.annotations.{Benchmark, Scope, State} @State(Scope.Benchmark) diff --git a/bench/src/main/scala/cats/bench/FoldBench.scala b/bench/src/main/scala/cats/bench/FoldBench.scala index be7e813ebc..d9ea572b98 100644 --- a/bench/src/main/scala/cats/bench/FoldBench.scala +++ b/bench/src/main/scala/cats/bench/FoldBench.scala @@ -22,10 +22,10 @@ package cats.bench import cats.data.Const -import cats.instances.string._ -import cats.instances.list._ -import cats.instances.vector._ -import cats.instances.option._ +import cats.instances.string.* +import cats.instances.list.* +import cats.instances.vector.* +import cats.instances.option.* import cats.{Foldable, Traverse} import org.openjdk.jmh.annotations.{Benchmark, Scope, State} diff --git a/bench/src/main/scala/cats/bench/FoldMapABench.scala b/bench/src/main/scala/cats/bench/FoldMapABench.scala index 01895fa352..5f47b9de19 100644 --- a/bench/src/main/scala/cats/bench/FoldMapABench.scala +++ b/bench/src/main/scala/cats/bench/FoldMapABench.scala @@ -22,11 +22,11 @@ package cats.bench import cats.Applicative -import cats.instances.either._ -import cats.instances.int._ -import cats.instances.vector._ +import cats.instances.either.* +import cats.instances.int.* +import cats.instances.vector.* import cats.kernel.Monoid -import cats.syntax.foldable._ +import cats.syntax.foldable.* import org.openjdk.jmh.annotations.{Benchmark, Scope, State} @State(Scope.Benchmark) diff --git a/bench/src/main/scala/cats/bench/MapMonoidBench.scala b/bench/src/main/scala/cats/bench/MapMonoidBench.scala index ac003fb212..f9843db3c9 100644 --- a/bench/src/main/scala/cats/bench/MapMonoidBench.scala +++ b/bench/src/main/scala/cats/bench/MapMonoidBench.scala @@ -21,9 +21,9 @@ package cats.bench -import cats.instances.list._ -import cats.instances.int._ -import cats.instances.map._ +import cats.instances.list.* +import cats.instances.int.* +import cats.instances.map.* import org.openjdk.jmh.annotations.{Benchmark, Scope, State} diff --git a/bench/src/main/scala/cats/bench/ParTraverseBench.scala b/bench/src/main/scala/cats/bench/ParTraverseBench.scala index e61aa038a0..bc44992f58 100644 --- a/bench/src/main/scala/cats/bench/ParTraverseBench.scala +++ b/bench/src/main/scala/cats/bench/ParTraverseBench.scala @@ -22,9 +22,9 @@ package cats.bench import cats.{Bitraverse, Parallel, Traverse} -import cats.instances.int._ -import cats.instances.either._ -import cats.instances.vector._ +import cats.instances.int.* +import cats.instances.either.* +import cats.instances.vector.* import org.openjdk.jmh.annotations.{Benchmark, Scope, State} /** diff --git a/bench/src/main/scala/cats/bench/StateTBench.scala b/bench/src/main/scala/cats/bench/StateTBench.scala index 5a9937dc01..de8c545706 100644 --- a/bench/src/main/scala/cats/bench/StateTBench.scala +++ b/bench/src/main/scala/cats/bench/StateTBench.scala @@ -23,7 +23,7 @@ package cats.bench import cats.Eval import cats.data.StateT -import org.openjdk.jmh.annotations._ +import org.openjdk.jmh.annotations.* /** * To run: diff --git a/bench/src/main/scala/cats/bench/TrampolineBench.scala b/bench/src/main/scala/cats/bench/TrampolineBench.scala index 7b49511349..3985d8e647 100644 --- a/bench/src/main/scala/cats/bench/TrampolineBench.scala +++ b/bench/src/main/scala/cats/bench/TrampolineBench.scala @@ -23,8 +23,8 @@ package cats.bench import org.openjdk.jmh.annotations.{Benchmark, Scope, State} -import cats._ -import cats.syntax.all._ +import cats.* +import cats.syntax.all.* import cats.free.Trampoline import scala.util.control.TailCalls diff --git a/bench/src/main/scala/cats/bench/UnorderedTraverseMapBench.scala b/bench/src/main/scala/cats/bench/UnorderedTraverseMapBench.scala index cf99d271fa..1a2a43830d 100644 --- a/bench/src/main/scala/cats/bench/UnorderedTraverseMapBench.scala +++ b/bench/src/main/scala/cats/bench/UnorderedTraverseMapBench.scala @@ -21,7 +21,7 @@ package cats.bench -import org.openjdk.jmh.annotations._ +import org.openjdk.jmh.annotations.* import cats.{CommutativeApplicative, Eval, UnorderedTraverse} import java.util.concurrent.TimeUnit import cats.data.Chain diff --git a/binCompatTest/src/main/scala-2/catsBC/MimaExceptions.scala b/binCompatTest/src/main/scala-2/catsBC/MimaExceptions.scala index bbfadaf8c6..8a9a7e1474 100644 --- a/binCompatTest/src/main/scala-2/catsBC/MimaExceptions.scala +++ b/binCompatTest/src/main/scala-2/catsBC/MimaExceptions.scala @@ -21,7 +21,7 @@ package catsBC import cats.InjectK -import cats.implicits._ +import cats.implicits.* object MimaExceptions { diff --git a/core/src/main/scala-2.12/cats/instances/ScalaVersionSpecificParallelInstances.scala b/core/src/main/scala-2.12/cats/instances/ScalaVersionSpecificParallelInstances.scala index c99ca4215d..38ca95b7ec 100644 --- a/core/src/main/scala-2.12/cats/instances/ScalaVersionSpecificParallelInstances.scala +++ b/core/src/main/scala-2.12/cats/instances/ScalaVersionSpecificParallelInstances.scala @@ -22,7 +22,7 @@ package cats package instances -import cats.data._ +import cats.data.* import cats.kernel.Semigroup import cats.{NonEmptyParallel, Parallel} diff --git a/core/src/main/scala-2.12/cats/instances/stream.scala b/core/src/main/scala-2.12/cats/instances/stream.scala index 1bac2b9f42..8d8d0ad0fc 100644 --- a/core/src/main/scala-2.12/cats/instances/stream.scala +++ b/core/src/main/scala-2.12/cats/instances/stream.scala @@ -23,8 +23,8 @@ package cats package instances import cats.data.{Ior, ZipStream} -import cats.kernel.compat.scalaVersionSpecific._ -import cats.syntax.show._ +import cats.kernel.compat.scalaVersionSpecific.* +import cats.syntax.show.* import scala.annotation.tailrec diff --git a/core/src/main/scala-2.13+/cats/data/NonEmptyLazyList.scala b/core/src/main/scala-2.13+/cats/data/NonEmptyLazyList.scala index 6faf08c5b6..f1d5ce0fd6 100644 --- a/core/src/main/scala-2.13+/cats/data/NonEmptyLazyList.scala +++ b/core/src/main/scala-2.13+/cats/data/NonEmptyLazyList.scala @@ -24,7 +24,7 @@ package data import NonEmptyLazyList.create import kernel.PartialOrder -import instances.lazyList._ +import instances.lazyList.* import scala.collection.immutable.{SortedMap, TreeMap, TreeSet} import scala.collection.mutable diff --git a/core/src/main/scala-2.13+/cats/instances/ScalaVersionSpecificParallelInstances.scala b/core/src/main/scala-2.13+/cats/instances/ScalaVersionSpecificParallelInstances.scala index aeef20c27e..e844626920 100644 --- a/core/src/main/scala-2.13+/cats/instances/ScalaVersionSpecificParallelInstances.scala +++ b/core/src/main/scala-2.13+/cats/instances/ScalaVersionSpecificParallelInstances.scala @@ -22,7 +22,7 @@ package cats package instances -import cats.data._ +import cats.data.* import cats.kernel.Semigroup import cats.data.ZipLazyList import cats.{NonEmptyParallel, Parallel} diff --git a/core/src/main/scala-2.13+/cats/instances/lazyList.scala b/core/src/main/scala-2.13+/cats/instances/lazyList.scala index 6b3069d5e3..714c119f0a 100644 --- a/core/src/main/scala-2.13+/cats/instances/lazyList.scala +++ b/core/src/main/scala-2.13+/cats/instances/lazyList.scala @@ -23,8 +23,8 @@ package cats package instances import cats.kernel -import cats.kernel.compat.scalaVersionSpecific._ -import cats.syntax.show._ +import cats.kernel.compat.scalaVersionSpecific.* +import cats.syntax.show.* import cats.data.Ior import cats.data.ZipLazyList diff --git a/core/src/main/scala-2.13+/cats/instances/stream.scala b/core/src/main/scala-2.13+/cats/instances/stream.scala index b451f09c37..ab5d9f1022 100644 --- a/core/src/main/scala-2.13+/cats/instances/stream.scala +++ b/core/src/main/scala-2.13+/cats/instances/stream.scala @@ -23,8 +23,8 @@ package cats package instances import cats.data.{Ior, ZipStream} -import cats.kernel.compat.scalaVersionSpecific._ -import cats.syntax.show._ +import cats.kernel.compat.scalaVersionSpecific.* +import cats.syntax.show.* import scala.annotation.tailrec diff --git a/core/src/main/scala-2/cats/arrow/FunctionKMacros.scala b/core/src/main/scala-2/cats/arrow/FunctionKMacros.scala index 08b02bec7f..764bb8fec7 100644 --- a/core/src/main/scala-2/cats/arrow/FunctionKMacros.scala +++ b/core/src/main/scala-2/cats/arrow/FunctionKMacros.scala @@ -57,7 +57,7 @@ private[arrow] object FunctionKMacros { c.Expr[FunctionK[F, G]](new Lifter[c.type](c).lift[F, G](f.tree)) private class Lifter[C <: blackbox.Context](val c: C) { - import c.universe._ + import c.universe.* def lift[F[_], G[_]](tree: Tree)(implicit evF: c.WeakTypeTag[F[Any]], evG: c.WeakTypeTag[G[Any]]): Tree = { def liftFunction(function: Tree): Tree = diff --git a/core/src/main/scala/cats/Alternative.scala b/core/src/main/scala/cats/Alternative.scala index e2cce09bcf..2cba69e1f3 100644 --- a/core/src/main/scala/cats/Alternative.scala +++ b/core/src/main/scala/cats/Alternative.scala @@ -21,7 +21,7 @@ package cats -import cats.kernel.compat.scalaVersionSpecific._ +import cats.kernel.compat.scalaVersionSpecific.* trait Alternative[F[_]] extends NonEmptyAlternative[F] with MonoidK[F] { self => diff --git a/core/src/main/scala/cats/Bifoldable.scala b/core/src/main/scala/cats/Bifoldable.scala index 12b4f7f3dc..9b815ec438 100644 --- a/core/src/main/scala/cats/Bifoldable.scala +++ b/core/src/main/scala/cats/Bifoldable.scala @@ -97,7 +97,7 @@ trait Bifoldable[F[_, _]] extends Serializable { self => } def bifold[A, B](fab: F[A, B])(implicit A: Monoid[A], B: Monoid[B]): (A, B) = { - import cats.instances.tuple._ + import cats.instances.tuple.* bifoldMap(fab)((_, B.empty), (A.empty, _)) } } diff --git a/core/src/main/scala/cats/Foldable.scala b/core/src/main/scala/cats/Foldable.scala index c7ecdd326a..0221c0edd1 100644 --- a/core/src/main/scala/cats/Foldable.scala +++ b/core/src/main/scala/cats/Foldable.scala @@ -883,7 +883,7 @@ trait Foldable[F[_]] extends UnorderedFoldable[F] with FoldableNFunctions[F] { s def partitionBifold[H[_, _], A, B, C]( fa: F[A] )(f: A => H[B, C])(implicit A: Alternative[F], H: Bifoldable[H]): (F[B], F[C]) = { - import cats.instances.tuple._ + import cats.instances.tuple.* implicit val mb: Monoid[F[B]] = A.algebra[B] implicit val mc: Monoid[F[C]] = A.algebra[C] @@ -909,7 +909,7 @@ trait Foldable[F[_]] extends UnorderedFoldable[F] with FoldableNFunctions[F] { s def partitionBifoldM[G[_], H[_, _], A, B, C]( fa: F[A] )(f: A => G[H[B, C]])(implicit A: Alternative[F], M: Monad[G], H: Bifoldable[H]): G[(F[B], F[C])] = { - import cats.instances.tuple._ + import cats.instances.tuple.* implicit val mb: Monoid[F[B]] = A.algebra[B] implicit val mc: Monoid[F[C]] = A.algebra[C] @@ -941,7 +941,7 @@ trait Foldable[F[_]] extends UnorderedFoldable[F] with FoldableNFunctions[F] { s def partitionEitherM[G[_], A, B, C]( fa: F[A] )(f: A => G[Either[B, C]])(implicit A: Alternative[F], M: Monad[G]): G[(F[B], F[C])] = { - import cats.instances.either._ + import cats.instances.either.* partitionBifoldM[G, Either, A, B, C](fa)(f)(A, M, Bifoldable[Either]) } } diff --git a/core/src/main/scala/cats/Invariant.scala b/core/src/main/scala/cats/Invariant.scala index 2728fdd767..d4f2f69751 100644 --- a/core/src/main/scala/cats/Invariant.scala +++ b/core/src/main/scala/cats/Invariant.scala @@ -22,9 +22,9 @@ package cats import cats.arrow.Arrow -import cats.kernel._ +import cats.kernel.* -import cats.kernel.compat.scalaVersionSpecific._ +import cats.kernel.compat.scalaVersionSpecific.* import org.typelevel.scalaccompat.annotation.targetName3 import scala.collection.immutable.{Queue, Seq, SortedMap} import scala.concurrent.{ExecutionContext, Future} diff --git a/core/src/main/scala/cats/MonoidK.scala b/core/src/main/scala/cats/MonoidK.scala index 38a1191791..f35c97e15f 100644 --- a/core/src/main/scala/cats/MonoidK.scala +++ b/core/src/main/scala/cats/MonoidK.scala @@ -21,7 +21,7 @@ package cats -import cats.kernel.compat.scalaVersionSpecific._ +import cats.kernel.compat.scalaVersionSpecific.* /** * MonoidK is a universal monoid which operates on kinds. diff --git a/core/src/main/scala/cats/SemigroupK.scala b/core/src/main/scala/cats/SemigroupK.scala index 6b56ca67f4..88bada7351 100644 --- a/core/src/main/scala/cats/SemigroupK.scala +++ b/core/src/main/scala/cats/SemigroupK.scala @@ -25,7 +25,7 @@ import scala.annotation.tailrec import scala.collection.immutable.{Seq, SortedMap, SortedSet} import cats.data.Ior -import cats.kernel.compat.scalaVersionSpecific._ +import cats.kernel.compat.scalaVersionSpecific.* /** * SemigroupK is a universal semigroup which operates on kinds. diff --git a/core/src/main/scala/cats/Traverse.scala b/core/src/main/scala/cats/Traverse.scala index cc2993ee69..e9fb322b96 100644 --- a/core/src/main/scala/cats/Traverse.scala +++ b/core/src/main/scala/cats/Traverse.scala @@ -24,7 +24,7 @@ package cats import cats.data.Chain import cats.data.State import cats.data.StateT -import cats.kernel.compat.scalaVersionSpecific._ +import cats.kernel.compat.scalaVersionSpecific.* /** * Traverse, also known as Traversable. diff --git a/core/src/main/scala/cats/TraverseFilter.scala b/core/src/main/scala/cats/TraverseFilter.scala index 9926efc321..7e941d3d67 100644 --- a/core/src/main/scala/cats/TraverseFilter.scala +++ b/core/src/main/scala/cats/TraverseFilter.scala @@ -22,7 +22,7 @@ package cats import cats.data.{Chain, State} -import cats.kernel.compat.scalaVersionSpecific._ +import cats.kernel.compat.scalaVersionSpecific.* import scala.collection.immutable.{IntMap, TreeSet} diff --git a/core/src/main/scala/cats/data/AndThen.scala b/core/src/main/scala/cats/data/AndThen.scala index e7b42bb149..0a3434972d 100644 --- a/core/src/main/scala/cats/data/AndThen.scala +++ b/core/src/main/scala/cats/data/AndThen.scala @@ -83,7 +83,7 @@ import scala.annotation.tailrec */ sealed abstract class AndThen[-T, +R] extends (T => R) with Product with Serializable { - import AndThen._ + import AndThen.* final def apply(a: T): R = runLoop(a) diff --git a/core/src/main/scala/cats/data/Binested.scala b/core/src/main/scala/cats/data/Binested.scala index 7ab52ea2b8..b86c8dc503 100644 --- a/core/src/main/scala/cats/data/Binested.scala +++ b/core/src/main/scala/cats/data/Binested.scala @@ -22,7 +22,7 @@ package cats package data -import cats.arrow._ +import cats.arrow.* /** * Compose a two-slot type constructor `F[_, _]` with two single-slot type constructors diff --git a/core/src/main/scala/cats/data/Chain.scala b/core/src/main/scala/cats/data/Chain.scala index 2248a562ea..840075f6c3 100644 --- a/core/src/main/scala/cats/data/Chain.scala +++ b/core/src/main/scala/cats/data/Chain.scala @@ -43,7 +43,7 @@ package cats package data import cats.instances.StaticMethods -import cats.kernel.compat.scalaVersionSpecific._ +import cats.kernel.compat.scalaVersionSpecific.* import cats.kernel.instances.{StaticMethods => KernelStaticMethods} import scala.annotation.tailrec diff --git a/core/src/main/scala/cats/data/Cokleisli.scala b/core/src/main/scala/cats/data/Cokleisli.scala index 06f1fb8ccd..48884fc253 100644 --- a/core/src/main/scala/cats/data/Cokleisli.scala +++ b/core/src/main/scala/cats/data/Cokleisli.scala @@ -22,7 +22,7 @@ package cats package data -import cats.arrow._ +import cats.arrow.* import cats.{CoflatMap, Comonad, Contravariant, Functor, Monad} import scala.annotation.tailrec diff --git a/core/src/main/scala/cats/data/EitherK.scala b/core/src/main/scala/cats/data/EitherK.scala index 472ad42c79..2607b6e995 100644 --- a/core/src/main/scala/cats/data/EitherK.scala +++ b/core/src/main/scala/cats/data/EitherK.scala @@ -32,7 +32,7 @@ import cats.arrow.FunctionK */ final case class EitherK[F[_], G[_], A](run: Either[F[A], G[A]]) { - import EitherK._ + import EitherK.* def map[B](f: A => B)(implicit F: Functor[F], G: Functor[G]): EitherK[F, G, B] = EitherK( diff --git a/core/src/main/scala/cats/data/Kleisli.scala b/core/src/main/scala/cats/data/Kleisli.scala index ce34adc147..03d589658d 100644 --- a/core/src/main/scala/cats/data/Kleisli.scala +++ b/core/src/main/scala/cats/data/Kleisli.scala @@ -23,7 +23,7 @@ package cats package data import cats.{Contravariant, Id} -import cats.arrow._ +import cats.arrow.* import cats.evidence.As /** diff --git a/core/src/main/scala/cats/data/NonEmptyChain.scala b/core/src/main/scala/cats/data/NonEmptyChain.scala index 3ab876bc43..ed701b188a 100644 --- a/core/src/main/scala/cats/data/NonEmptyChain.scala +++ b/core/src/main/scala/cats/data/NonEmptyChain.scala @@ -23,7 +23,7 @@ package cats package data import cats.instances.StaticMethods -import cats.kernel._ +import cats.kernel.* import scala.collection.immutable.SortedMap diff --git a/core/src/main/scala/cats/data/NonEmptyMapImpl.scala b/core/src/main/scala/cats/data/NonEmptyMapImpl.scala index 9b8cebd01a..f7b91acbae 100644 --- a/core/src/main/scala/cats/data/NonEmptyMapImpl.scala +++ b/core/src/main/scala/cats/data/NonEmptyMapImpl.scala @@ -22,9 +22,9 @@ package cats package data -import cats.kernel._ +import cats.kernel.* -import scala.collection.immutable._ +import scala.collection.immutable.* /** * Actual implementation for [[cats.data.NonEmptyMap]] diff --git a/core/src/main/scala/cats/data/NonEmptySeq.scala b/core/src/main/scala/cats/data/NonEmptySeq.scala index 65d76440fb..84f0f5b289 100644 --- a/core/src/main/scala/cats/data/NonEmptySeq.scala +++ b/core/src/main/scala/cats/data/NonEmptySeq.scala @@ -23,7 +23,7 @@ package cats package data import cats.data.NonEmptySeq.ZipNonEmptySeq -import cats.kernel.compat.scalaVersionSpecific._ +import cats.kernel.compat.scalaVersionSpecific.* import scala.annotation.tailrec import scala.collection.mutable diff --git a/core/src/main/scala/cats/data/NonEmptySet.scala b/core/src/main/scala/cats/data/NonEmptySet.scala index f9b7dd78a4..83419aec5c 100644 --- a/core/src/main/scala/cats/data/NonEmptySet.scala +++ b/core/src/main/scala/cats/data/NonEmptySet.scala @@ -22,11 +22,11 @@ package cats package data -import cats.kernel._ +import cats.kernel.* -import scala.collection.immutable._ +import scala.collection.immutable.* -import kernel.compat.scalaVersionSpecific._ +import kernel.compat.scalaVersionSpecific.* /** * Actual implementation for [[cats.data.NonEmptySet]] diff --git a/core/src/main/scala/cats/data/NonEmptyVector.scala b/core/src/main/scala/cats/data/NonEmptyVector.scala index 21f0d403e6..8035977e7c 100644 --- a/core/src/main/scala/cats/data/NonEmptyVector.scala +++ b/core/src/main/scala/cats/data/NonEmptyVector.scala @@ -24,7 +24,7 @@ package data import cats.data.NonEmptyVector.ZipNonEmptyVector import cats.instances.StaticMethods -import cats.kernel.compat.scalaVersionSpecific._ +import cats.kernel.compat.scalaVersionSpecific.* import scala.annotation.tailrec import scala.collection.mutable diff --git a/core/src/main/scala/cats/data/OneAnd.scala b/core/src/main/scala/cats/data/OneAnd.scala index 5e3c390fd1..06df7e742b 100644 --- a/core/src/main/scala/cats/data/OneAnd.scala +++ b/core/src/main/scala/cats/data/OneAnd.scala @@ -23,7 +23,7 @@ package cats package data import scala.annotation.tailrec -import kernel.compat.scalaVersionSpecific._ +import kernel.compat.scalaVersionSpecific.* /** * A data type which represents a single element (head) and some other @@ -310,7 +310,7 @@ sealed abstract private[data] class OneAndLowPriority0 extends OneAndLowPriority ): NonEmptyTraverse[OneAnd[F, *]] = new NonEmptyReducible[OneAnd[F, *], F] with NonEmptyTraverse[OneAnd[F, *]] { def nonEmptyTraverse[G[_], A, B](fa: OneAnd[F, A])(f: (A) => G[B])(implicit G: Apply[G]): G[OneAnd[F, B]] = { - import syntax.foldable._ + import syntax.foldable.* def loop(head: A, tail: Iterator[A]): Eval[G[OneAnd[F, B]]] = if (tail.hasNext) { diff --git a/core/src/main/scala/cats/data/Op.scala b/core/src/main/scala/cats/data/Op.scala index bb341bc536..372eb58865 100644 --- a/core/src/main/scala/cats/data/Op.scala +++ b/core/src/main/scala/cats/data/Op.scala @@ -22,7 +22,7 @@ package cats package data -import cats.arrow._ +import cats.arrow.* /** * The dual category of some other category, `Arr`. diff --git a/core/src/main/scala/cats/data/ZipList.scala b/core/src/main/scala/cats/data/ZipList.scala index 431efa406e..16439d58c4 100644 --- a/core/src/main/scala/cats/data/ZipList.scala +++ b/core/src/main/scala/cats/data/ZipList.scala @@ -22,7 +22,7 @@ package cats package data -import kernel.compat.scalaVersionSpecific._ +import kernel.compat.scalaVersionSpecific.* class ZipList[A](val value: List[A]) extends AnyVal diff --git a/core/src/main/scala/cats/data/ZipSeq.scala b/core/src/main/scala/cats/data/ZipSeq.scala index af6e706ae3..2b62718523 100644 --- a/core/src/main/scala/cats/data/ZipSeq.scala +++ b/core/src/main/scala/cats/data/ZipSeq.scala @@ -23,7 +23,7 @@ package cats package data import scala.collection.immutable.Seq -import kernel.compat.scalaVersionSpecific._ +import kernel.compat.scalaVersionSpecific.* class ZipSeq[A](val value: Seq[A]) extends AnyVal diff --git a/core/src/main/scala/cats/data/ZipVector.scala b/core/src/main/scala/cats/data/ZipVector.scala index 27a88cd545..5048518d26 100644 --- a/core/src/main/scala/cats/data/ZipVector.scala +++ b/core/src/main/scala/cats/data/ZipVector.scala @@ -22,7 +22,7 @@ package cats package data -import kernel.compat.scalaVersionSpecific._ +import kernel.compat.scalaVersionSpecific.* class ZipVector[A](val value: Vector[A]) extends AnyVal diff --git a/core/src/main/scala/cats/evidence/As.scala b/core/src/main/scala/cats/evidence/As.scala index 7d6b800d13..ecabda4c07 100644 --- a/core/src/main/scala/cats/evidence/As.scala +++ b/core/src/main/scala/cats/evidence/As.scala @@ -67,7 +67,7 @@ sealed abstract class As[-A, +B] extends Serializable { } sealed abstract class AsInstances { - import As._ + import As.* /* * Subtyping forms a category diff --git a/core/src/main/scala/cats/evidence/Is.scala b/core/src/main/scala/cats/evidence/Is.scala index 5223e3d498..c02a8e314e 100644 --- a/core/src/main/scala/cats/evidence/Is.scala +++ b/core/src/main/scala/cats/evidence/Is.scala @@ -22,7 +22,7 @@ package cats.evidence import cats.Id -import cats.arrow._ +import cats.arrow.* /** * A value of `A Is B` is proof that the types `A` and `B` are the same. More @@ -96,7 +96,7 @@ abstract class Is[A, B] extends Serializable { } sealed abstract class IsInstances { - import Is._ + import Is.* /** * The category instance on Leibniz categories. diff --git a/core/src/main/scala/cats/instances/either.scala b/core/src/main/scala/cats/instances/either.scala index 586abc48c8..221969ce6f 100644 --- a/core/src/main/scala/cats/instances/either.scala +++ b/core/src/main/scala/cats/instances/either.scala @@ -25,7 +25,7 @@ package instances import cats.data.Validated import cats.kernel.Semigroup import cats.syntax.EitherUtil -import cats.syntax.either._ +import cats.syntax.either.* import scala.annotation.tailrec import cats.data.Ior diff --git a/core/src/main/scala/cats/instances/invariant.scala b/core/src/main/scala/cats/instances/invariant.scala index d9715c3ce1..0423fe6f62 100644 --- a/core/src/main/scala/cats/instances/invariant.scala +++ b/core/src/main/scala/cats/instances/invariant.scala @@ -21,8 +21,8 @@ package cats.instances -import cats.kernel._ -import cats.kernel.instances.unit._ +import cats.kernel.* +import cats.kernel.instances.unit.* import cats.{Invariant, InvariantMonoidal, InvariantSemigroupal, Monoid} trait InvariantMonoidalInstances { diff --git a/core/src/main/scala/cats/instances/list.scala b/core/src/main/scala/cats/instances/list.scala index a1306f159b..ac063a9dcb 100644 --- a/core/src/main/scala/cats/instances/list.scala +++ b/core/src/main/scala/cats/instances/list.scala @@ -25,7 +25,7 @@ package instances import cats.data.{Chain, Ior, ZipList} import cats.StackSafeMonad import cats.instances.StaticMethods.appendAll -import cats.kernel.compat.scalaVersionSpecific._ +import cats.kernel.compat.scalaVersionSpecific.* import cats.kernel.instances.StaticMethods.wrapMutableIndexedSeq import scala.annotation.tailrec diff --git a/core/src/main/scala/cats/instances/option.scala b/core/src/main/scala/cats/instances/option.scala index 315b91f942..a8dd34ab2f 100644 --- a/core/src/main/scala/cats/instances/option.scala +++ b/core/src/main/scala/cats/instances/option.scala @@ -24,7 +24,7 @@ package instances import scala.annotation.tailrec import cats.data.Ior -import cats.kernel.compat.scalaVersionSpecific._ +import cats.kernel.compat.scalaVersionSpecific.* trait OptionInstances extends cats.kernel.instances.OptionInstances { diff --git a/core/src/main/scala/cats/instances/order.scala b/core/src/main/scala/cats/instances/order.scala index c1b4eab29b..88f2e08956 100644 --- a/core/src/main/scala/cats/instances/order.scala +++ b/core/src/main/scala/cats/instances/order.scala @@ -22,7 +22,7 @@ package cats package instances -import cats.kernel.instances.unit._ +import cats.kernel.instances.unit.* import scala.annotation.tailrec diff --git a/core/src/main/scala/cats/instances/ordering.scala b/core/src/main/scala/cats/instances/ordering.scala index 802e778e20..08b5697f07 100644 --- a/core/src/main/scala/cats/instances/ordering.scala +++ b/core/src/main/scala/cats/instances/ordering.scala @@ -22,7 +22,7 @@ package cats package instances -import cats.kernel.instances.unit._ +import cats.kernel.instances.unit.* import scala.annotation.tailrec diff --git a/core/src/main/scala/cats/instances/parallel.scala b/core/src/main/scala/cats/instances/parallel.scala index 7949854e3c..2533851c7e 100644 --- a/core/src/main/scala/cats/instances/parallel.scala +++ b/core/src/main/scala/cats/instances/parallel.scala @@ -22,7 +22,7 @@ package cats package instances -import cats.data._ +import cats.data.* import cats.kernel.Semigroup private[instances] trait ParallelInstances1 { diff --git a/core/src/main/scala/cats/instances/partialOrder.scala b/core/src/main/scala/cats/instances/partialOrder.scala index 81bdce03e1..dee8ae942c 100644 --- a/core/src/main/scala/cats/instances/partialOrder.scala +++ b/core/src/main/scala/cats/instances/partialOrder.scala @@ -21,7 +21,7 @@ package cats package instances -import cats.kernel.instances.unit._ +import cats.kernel.instances.unit.* import scala.annotation.tailrec diff --git a/core/src/main/scala/cats/instances/queue.scala b/core/src/main/scala/cats/instances/queue.scala index bb10850423..4701ca43e4 100644 --- a/core/src/main/scala/cats/instances/queue.scala +++ b/core/src/main/scala/cats/instances/queue.scala @@ -24,7 +24,7 @@ package instances import cats.data.Chain import cats.instances.StaticMethods.appendAll -import cats.kernel.compat.scalaVersionSpecific._ +import cats.kernel.compat.scalaVersionSpecific.* import cats.kernel.instances.StaticMethods.wrapMutableIndexedSeq import scala.annotation.tailrec diff --git a/core/src/main/scala/cats/instances/seq.scala b/core/src/main/scala/cats/instances/seq.scala index 32272eb1f9..7a01b43dfe 100644 --- a/core/src/main/scala/cats/instances/seq.scala +++ b/core/src/main/scala/cats/instances/seq.scala @@ -24,7 +24,7 @@ package instances import cats.data.{Chain, Ior, ZipSeq} import cats.instances.StaticMethods.appendAll -import cats.kernel.compat.scalaVersionSpecific._ +import cats.kernel.compat.scalaVersionSpecific.* import scala.annotation.tailrec import scala.collection.mutable diff --git a/core/src/main/scala/cats/instances/sortedMap.scala b/core/src/main/scala/cats/instances/sortedMap.scala index 344176ff95..e64f70e270 100644 --- a/core/src/main/scala/cats/instances/sortedMap.scala +++ b/core/src/main/scala/cats/instances/sortedMap.scala @@ -21,7 +21,7 @@ package cats.instances -import cats._ +import cats.* import cats.data.{Chain, Ior} import cats.kernel.{CommutativeMonoid, CommutativeSemigroup} import cats.kernel.instances.StaticMethods.wrapMutableIndexedSeq diff --git a/core/src/main/scala/cats/instances/vector.scala b/core/src/main/scala/cats/instances/vector.scala index 06f93b4fef..2298b47fb5 100644 --- a/core/src/main/scala/cats/instances/vector.scala +++ b/core/src/main/scala/cats/instances/vector.scala @@ -24,7 +24,7 @@ package instances import cats.data.{Chain, Ior, ZipVector} import cats.instances.StaticMethods.appendAll -import cats.kernel.compat.scalaVersionSpecific._ +import cats.kernel.compat.scalaVersionSpecific.* import scala.annotation.tailrec import scala.collection.immutable.VectorBuilder diff --git a/core/src/main/scala/cats/syntax/either.scala b/core/src/main/scala/cats/syntax/either.scala index 4c1ca96015..f9092fd6a4 100644 --- a/core/src/main/scala/cats/syntax/either.scala +++ b/core/src/main/scala/cats/syntax/either.scala @@ -22,11 +22,11 @@ package cats package syntax -import cats.data._ +import cats.data.* import scala.reflect.ClassTag import scala.util.{Failure, Success, Try} -import EitherSyntax._ +import EitherSyntax.* trait EitherSyntax { implicit final def catsSyntaxEither[A, B](eab: Either[A, B]): EitherOps[A, B] = new EitherOps(eab) diff --git a/free/src/main/scala/cats/free/FreeApplicative.scala b/free/src/main/scala/cats/free/FreeApplicative.scala index 93e22a8304..343abfffdd 100644 --- a/free/src/main/scala/cats/free/FreeApplicative.scala +++ b/free/src/main/scala/cats/free/FreeApplicative.scala @@ -65,7 +65,7 @@ sealed abstract class FreeApplicative[F[_], A] extends Product with Serializable * Tail recursive. */ final def foldMap[G[_]](f: F ~> G)(implicit G: Applicative[G]): G[A] = { - import FreeApplicative._ + import FreeApplicative.* // the remaining arguments to G[A => B]'s var argsF: List[FA[F, Any]] = this.asInstanceOf[FA[F, Any]] :: Nil var argsFLength: Int = 1 diff --git a/free/src/main/scala/cats/free/FreeT.scala b/free/src/main/scala/cats/free/FreeT.scala index 1a24584a8e..3785db38b4 100644 --- a/free/src/main/scala/cats/free/FreeT.scala +++ b/free/src/main/scala/cats/free/FreeT.scala @@ -37,7 +37,7 @@ import cats.arrow.FunctionK * originally written by Brian McKenna. */ sealed abstract class FreeT[S[_], M[_], A] extends Product with Serializable { - import FreeT._ + import FreeT.* final def map[B](f: A => B)(implicit M: Applicative[M]): FreeT[S, M, B] = flatMap(a => pure(f(a))) diff --git a/free/src/test/scala-2.13+/cats/free/FreeStructuralSuite.scala b/free/src/test/scala-2.13+/cats/free/FreeStructuralSuite.scala index 7aee33b776..7d06af41d5 100644 --- a/free/src/test/scala-2.13+/cats/free/FreeStructuralSuite.scala +++ b/free/src/test/scala-2.13+/cats/free/FreeStructuralSuite.scala @@ -23,7 +23,7 @@ package cats.free import cats.{Applicative, Eq, Eval, Functor, Show, Traverse} import cats.kernel.laws.discipline.{EqTests, HashTests, PartialOrderTests} -import cats.syntax.all._ +import cats.syntax.all.* import cats.tests.CatsSuite import org.scalacheck.{Arbitrary, Cogen, Gen} @@ -31,7 +31,7 @@ import org.scalacheck.{Arbitrary, Cogen, Gen} // this functionality doesn't exist on Scala 2.12 class FreeStructuralSuite extends CatsSuite { import FreeSuite.freeArbitrary - import FreeStructuralSuite._ + import FreeStructuralSuite.* implicit def freeCogen[S[_]: Functor, A](implicit S: => Cogen[S[Free[S, A]]], A: Cogen[A]): Cogen[Free[S, A]] = Cogen { (seed, f) => diff --git a/free/src/test/scala/cats/free/CofreeSuite.scala b/free/src/test/scala/cats/free/CofreeSuite.scala index dec6ed1ee0..ff0e63afec 100644 --- a/free/src/test/scala/cats/free/CofreeSuite.scala +++ b/free/src/test/scala/cats/free/CofreeSuite.scala @@ -23,20 +23,20 @@ package cats.free import cats.{~>, Comonad, Eval, Id, Reducible, Traverse} import cats.data.{NonEmptyList, OptionT} -import cats.instances.all._ +import cats.instances.all.* import cats.kernel.Eq import cats.laws.discipline.{ComonadTests, ReducibleTests, SerializableTests, TraverseTests} import cats.laws.discipline.SemigroupalTests.Isomorphisms -import cats.syntax.list._ +import cats.syntax.list.* import cats.tests.{CatsSuite, Spooky} import org.scalacheck.{Arbitrary, Cogen, Gen} -import cats.syntax.eq._ +import cats.syntax.eq.* import scala.annotation.tailrec class CofreeSuite extends CatsSuite { - import CofreeSuite._ + import CofreeSuite.* implicit val iso: Isomorphisms[Cofree[Option, *]] = Isomorphisms.invariant[Cofree[Option, *]] diff --git a/free/src/test/scala/cats/free/ContravariantCoyonedaSuite.scala b/free/src/test/scala/cats/free/ContravariantCoyonedaSuite.scala index 047d0b3f2a..f61cf1785d 100644 --- a/free/src/test/scala/cats/free/ContravariantCoyonedaSuite.scala +++ b/free/src/test/scala/cats/free/ContravariantCoyonedaSuite.scala @@ -23,13 +23,13 @@ package cats.free import cats.{~>, Contravariant} import cats.arrow.FunctionK -import cats.instances.all._ +import cats.instances.all.* import cats.kernel.Eq import cats.laws.discipline.{ContravariantTests, SerializableTests} import cats.tests.CatsSuite import org.scalacheck.Arbitrary -import cats.syntax.eq._ -import org.scalacheck.Prop._ +import cats.syntax.eq.* +import org.scalacheck.Prop.* class ContravariantCoyonedaSuite extends CatsSuite { diff --git a/free/src/test/scala/cats/free/CoyonedaSuite.scala b/free/src/test/scala/cats/free/CoyonedaSuite.scala index 3f8612779b..d1e533190a 100644 --- a/free/src/test/scala/cats/free/CoyonedaSuite.scala +++ b/free/src/test/scala/cats/free/CoyonedaSuite.scala @@ -23,13 +23,13 @@ package cats.free import cats.Functor import cats.arrow.FunctionK -import cats.instances.all._ +import cats.instances.all.* import cats.kernel.Eq import cats.laws.discipline.{FunctorTests, SerializableTests} import cats.tests.CatsSuite import org.scalacheck.Arbitrary -import cats.syntax.eq._ -import org.scalacheck.Prop._ +import cats.syntax.eq.* +import org.scalacheck.Prop.* class CoyonedaSuite extends CatsSuite { implicit def coyonedaArbitrary[F[_]: Functor, A: Arbitrary](implicit F: Arbitrary[F[A]]): Arbitrary[Coyoneda[F, A]] = diff --git a/free/src/test/scala/cats/free/FreeApplicativeSuite.scala b/free/src/test/scala/cats/free/FreeApplicativeSuite.scala index 1525a830be..b7f2e7508a 100644 --- a/free/src/test/scala/cats/free/FreeApplicativeSuite.scala +++ b/free/src/test/scala/cats/free/FreeApplicativeSuite.scala @@ -24,18 +24,18 @@ package cats.free import cats.{~>, Applicative, Apply, Id} import cats.arrow.FunctionK import cats.data.State -import cats.instances.all._ +import cats.instances.all.* import cats.kernel.Eq import cats.laws.discipline.{ApplicativeTests, SerializableTests} import cats.laws.discipline.SemigroupalTests.Isomorphisms -import cats.syntax.apply._ -import cats.syntax.eq._ -import org.scalacheck.Prop._ +import cats.syntax.apply.* +import cats.syntax.eq.* +import org.scalacheck.Prop.* import cats.tests.CatsSuite import org.scalacheck.{Arbitrary, Gen} class FreeApplicativeSuite extends CatsSuite { - import FreeApplicativeSuite._ + import FreeApplicativeSuite.* implicit val iso: Isomorphisms[FreeApplicative[Option, *]] = Isomorphisms.invariant[FreeApplicative[Option, *]] diff --git a/free/src/test/scala/cats/free/FreeInvariantMonoidalSuite.scala b/free/src/test/scala/cats/free/FreeInvariantMonoidalSuite.scala index c23ec66d33..24f8a2be6e 100644 --- a/free/src/test/scala/cats/free/FreeInvariantMonoidalSuite.scala +++ b/free/src/test/scala/cats/free/FreeInvariantMonoidalSuite.scala @@ -24,15 +24,15 @@ package cats.free import cats.{Id, InvariantMonoidal} import cats.arrow.FunctionK import cats.kernel.Eq -import cats.instances.all._ +import cats.instances.all.* import cats.laws.discipline.{InvariantMonoidalTests, MiniInt, SerializableTests} -import cats.laws.discipline.arbitrary._ +import cats.laws.discipline.arbitrary.* import cats.laws.discipline.SemigroupalTests.Isomorphisms -import cats.syntax.invariant._ -import cats.syntax.semigroupal._ -import cats.syntax.eq._ -import org.scalacheck.Prop._ -import cats.tests.BinCodecInvariantMonoidalSuite._ +import cats.syntax.invariant.* +import cats.syntax.semigroupal.* +import cats.syntax.eq.* +import org.scalacheck.Prop.* +import cats.tests.BinCodecInvariantMonoidalSuite.* import cats.tests.CatsSuite import org.scalacheck.{Arbitrary, Gen} diff --git a/free/src/test/scala/cats/free/FreeSuite.scala b/free/src/test/scala/cats/free/FreeSuite.scala index 7c1bb13d00..a305524eb1 100644 --- a/free/src/test/scala/cats/free/FreeSuite.scala +++ b/free/src/test/scala/cats/free/FreeSuite.scala @@ -21,23 +21,23 @@ package cats.free -import cats._ +import cats.* import cats.arrow.FunctionK import cats.data.EitherK -import cats.instances.all._ +import cats.instances.all.* import cats.kernel.Eq -import cats.syntax.eq._ +import cats.syntax.eq.* import cats.laws.discipline.{DeferTests, FoldableTests, MonadTests, SerializableTests, TraverseTests} import cats.laws.discipline.arbitrary.catsLawsArbitraryForFn0 import cats.laws.discipline.SemigroupalTests.Isomorphisms -import cats.syntax.apply._ +import cats.syntax.apply.* import cats.tests.CatsSuite import org.scalacheck.{Arbitrary, Cogen, Gen} import org.scalacheck.Arbitrary.arbFunction1 -import org.scalacheck.Prop._ +import org.scalacheck.Prop.* class FreeSuite extends CatsSuite { - import FreeSuite._ + import FreeSuite.* implicit val iso: Isomorphisms[Free[Option, *]] = Isomorphisms.invariant[Free[Option, *]] diff --git a/free/src/test/scala/cats/free/FreeTSuite.scala b/free/src/test/scala/cats/free/FreeTSuite.scala index fa1a538b1b..af7da5a725 100644 --- a/free/src/test/scala/cats/free/FreeTSuite.scala +++ b/free/src/test/scala/cats/free/FreeTSuite.scala @@ -21,21 +21,21 @@ package cats.free -import cats._ +import cats.* import cats.arrow.FunctionK -import cats.data._ -import cats.instances.all._ -import cats.laws.discipline._ -import cats.syntax.applicative._ -import cats.syntax.either._ +import cats.data.* +import cats.instances.all.* +import cats.laws.discipline.* +import cats.syntax.applicative.* +import cats.syntax.either.* import cats.tests.CatsSuite import org.scalacheck.{Arbitrary, Cogen, Gen} -import cats.syntax.eq._ -import org.scalacheck.Prop._ +import cats.syntax.eq.* +import org.scalacheck.Prop.* class FreeTSuite extends CatsSuite { - import FreeTSuite._ + import FreeTSuite.* { implicit val freeTFlatMap: FlatMap[FreeTOption] = FreeT.catsFreeFlatMapForFreeT[Option, Option] @@ -245,7 +245,7 @@ class FreeTSuite extends CatsSuite { object FreeTSuite extends FreeTSuiteInstances { - import Arbitrary._ + import Arbitrary.* import org.scalacheck.Arbitrary implicit def freeTArb[F[_], G[_]: Applicative, A](implicit @@ -283,10 +283,10 @@ object FreeTSuite extends FreeTSuiteInstances { trait FreeTSuiteInstances { - import FreeT._ - import IndexedStateT._ - import cats.tests.IndexedStateTSuite._ - import SemigroupalTests._ + import FreeT.* + import IndexedStateT.* + import cats.tests.IndexedStateTSuite.* + import SemigroupalTests.* type IntState[A] = State[MiniInt, A] type FreeTOption[A] = FreeT[Option, Option, A] diff --git a/free/src/test/scala/cats/free/InvariantCoyonedaSuite.scala b/free/src/test/scala/cats/free/InvariantCoyonedaSuite.scala index 64fab709f5..5e6ed54eac 100644 --- a/free/src/test/scala/cats/free/InvariantCoyonedaSuite.scala +++ b/free/src/test/scala/cats/free/InvariantCoyonedaSuite.scala @@ -25,13 +25,13 @@ import cats.~> import cats.arrow.FunctionK import cats.Invariant import cats.Semigroup -import cats.instances.all._ +import cats.instances.all.* import cats.kernel.Eq import cats.laws.discipline.{InvariantTests, SerializableTests} import cats.tests.CatsSuite import org.scalacheck.Arbitrary -import cats.syntax.eq._ -import org.scalacheck.Prop._ +import cats.syntax.eq.* +import org.scalacheck.Prop.* class InvariantCoyonedaSuite extends CatsSuite { diff --git a/free/src/test/scala/cats/free/YonedaSuite.scala b/free/src/test/scala/cats/free/YonedaSuite.scala index 7944af57b2..05022e79e3 100644 --- a/free/src/test/scala/cats/free/YonedaSuite.scala +++ b/free/src/test/scala/cats/free/YonedaSuite.scala @@ -22,13 +22,13 @@ package cats.free import cats.Functor -import cats.instances.all._ +import cats.instances.all.* import cats.kernel.Eq import cats.laws.discipline.{FunctorTests, SerializableTests} import cats.tests.CatsSuite import org.scalacheck.Arbitrary -import cats.syntax.eq._ -import org.scalacheck.Prop._ +import cats.syntax.eq.* +import org.scalacheck.Prop.* class YonedaSuite extends CatsSuite { implicit def yonedaArbitrary[F[_]: Functor, A](implicit F: Arbitrary[F[A]]): Arbitrary[Yoneda[F, A]] = diff --git a/kernel-laws/shared/src/main/scala/cats/kernel/laws/HashLaws.scala b/kernel-laws/shared/src/main/scala/cats/kernel/laws/HashLaws.scala index 346d031b88..f96ee132c8 100644 --- a/kernel-laws/shared/src/main/scala/cats/kernel/laws/HashLaws.scala +++ b/kernel-laws/shared/src/main/scala/cats/kernel/laws/HashLaws.scala @@ -22,7 +22,7 @@ package cats.kernel package laws -import scala.util.hashing._ +import scala.util.hashing.* trait HashLaws[A] extends EqLaws[A] { implicit override def E: Hash[A] diff --git a/kernel-laws/shared/src/main/scala/cats/kernel/laws/PartialOrderLaws.scala b/kernel-laws/shared/src/main/scala/cats/kernel/laws/PartialOrderLaws.scala index 001be7298c..24e14e614f 100644 --- a/kernel-laws/shared/src/main/scala/cats/kernel/laws/PartialOrderLaws.scala +++ b/kernel-laws/shared/src/main/scala/cats/kernel/laws/PartialOrderLaws.scala @@ -22,7 +22,7 @@ package cats.kernel.laws import cats.kernel.{Eq, PartialOrder} -import cats.kernel.instances.option._ +import cats.kernel.instances.option.* trait PartialOrderLaws[A] extends EqLaws[A] { implicit override def E: PartialOrder[A] diff --git a/kernel-laws/shared/src/main/scala/cats/kernel/laws/discipline/BoundedTests.scala b/kernel-laws/shared/src/main/scala/cats/kernel/laws/discipline/BoundedTests.scala index f95b9c0621..4a312f405f 100644 --- a/kernel-laws/shared/src/main/scala/cats/kernel/laws/discipline/BoundedTests.scala +++ b/kernel-laws/shared/src/main/scala/cats/kernel/laws/discipline/BoundedTests.scala @@ -24,7 +24,7 @@ package kernel package laws package discipline -import cats.kernel.instances.boolean._ +import cats.kernel.instances.boolean.* import org.scalacheck.Arbitrary import org.scalacheck.Prop.forAll diff --git a/kernel-laws/shared/src/main/scala/cats/kernel/laws/discipline/EnumerableTests.scala b/kernel-laws/shared/src/main/scala/cats/kernel/laws/discipline/EnumerableTests.scala index 471f89336c..b80919f979 100644 --- a/kernel-laws/shared/src/main/scala/cats/kernel/laws/discipline/EnumerableTests.scala +++ b/kernel-laws/shared/src/main/scala/cats/kernel/laws/discipline/EnumerableTests.scala @@ -24,7 +24,7 @@ package kernel package laws package discipline -import cats.kernel.instances.boolean._ +import cats.kernel.instances.boolean.* import org.scalacheck.{Arbitrary, Prop} import org.scalacheck.Prop.forAll diff --git a/kernel-laws/shared/src/main/scala/cats/kernel/laws/discipline/EqTests.scala b/kernel-laws/shared/src/main/scala/cats/kernel/laws/discipline/EqTests.scala index c474ea87ae..3ee39511b4 100644 --- a/kernel-laws/shared/src/main/scala/cats/kernel/laws/discipline/EqTests.scala +++ b/kernel-laws/shared/src/main/scala/cats/kernel/laws/discipline/EqTests.scala @@ -24,7 +24,7 @@ package kernel package laws package discipline -import cats.kernel.instances.boolean._ +import cats.kernel.instances.boolean.* import org.scalacheck.Arbitrary import org.scalacheck.Prop.forAll import org.typelevel.discipline.Laws diff --git a/kernel-laws/shared/src/main/scala/cats/kernel/laws/discipline/HashTests.scala b/kernel-laws/shared/src/main/scala/cats/kernel/laws/discipline/HashTests.scala index 89b3553267..86d1c2972c 100644 --- a/kernel-laws/shared/src/main/scala/cats/kernel/laws/discipline/HashTests.scala +++ b/kernel-laws/shared/src/main/scala/cats/kernel/laws/discipline/HashTests.scala @@ -24,7 +24,7 @@ package kernel package laws package discipline -import cats.kernel.instances.boolean._ +import cats.kernel.instances.boolean.* import org.scalacheck.Arbitrary import org.scalacheck.Prop.forAll diff --git a/kernel-laws/shared/src/main/scala/cats/kernel/laws/discipline/MonoidTests.scala b/kernel-laws/shared/src/main/scala/cats/kernel/laws/discipline/MonoidTests.scala index 1dbfa247cf..0dc815b6f9 100644 --- a/kernel-laws/shared/src/main/scala/cats/kernel/laws/discipline/MonoidTests.scala +++ b/kernel-laws/shared/src/main/scala/cats/kernel/laws/discipline/MonoidTests.scala @@ -24,7 +24,7 @@ package kernel package laws package discipline -import cats.kernel.instances.boolean._ +import cats.kernel.instances.boolean.* import org.scalacheck.Arbitrary import org.scalacheck.Prop import org.scalacheck.Prop.forAll diff --git a/kernel-laws/shared/src/main/scala/cats/kernel/laws/discipline/OrderTests.scala b/kernel-laws/shared/src/main/scala/cats/kernel/laws/discipline/OrderTests.scala index 017f501dc4..3198b93bb3 100644 --- a/kernel-laws/shared/src/main/scala/cats/kernel/laws/discipline/OrderTests.scala +++ b/kernel-laws/shared/src/main/scala/cats/kernel/laws/discipline/OrderTests.scala @@ -24,7 +24,7 @@ package kernel package laws package discipline -import cats.kernel.instances.boolean._ +import cats.kernel.instances.boolean.* import org.scalacheck.Arbitrary import org.scalacheck.Prop.forAll diff --git a/kernel-laws/shared/src/main/scala/cats/kernel/laws/discipline/PartialOrderTests.scala b/kernel-laws/shared/src/main/scala/cats/kernel/laws/discipline/PartialOrderTests.scala index 280522b233..63a8569314 100644 --- a/kernel-laws/shared/src/main/scala/cats/kernel/laws/discipline/PartialOrderTests.scala +++ b/kernel-laws/shared/src/main/scala/cats/kernel/laws/discipline/PartialOrderTests.scala @@ -24,7 +24,7 @@ package kernel package laws package discipline -import cats.kernel.instances.boolean._ +import cats.kernel.instances.boolean.* import org.scalacheck.Arbitrary import org.scalacheck.Prop.forAll diff --git a/kernel-laws/shared/src/main/scala/cats/kernel/laws/discipline/SemigroupTests.scala b/kernel-laws/shared/src/main/scala/cats/kernel/laws/discipline/SemigroupTests.scala index b27fa70fcd..b47747cb72 100644 --- a/kernel-laws/shared/src/main/scala/cats/kernel/laws/discipline/SemigroupTests.scala +++ b/kernel-laws/shared/src/main/scala/cats/kernel/laws/discipline/SemigroupTests.scala @@ -24,7 +24,7 @@ package kernel package laws package discipline -import cats.kernel.instances.option._ +import cats.kernel.instances.option.* import org.scalacheck.Arbitrary import org.scalacheck.Prop.forAll import org.typelevel.discipline.Laws diff --git a/kernel-laws/shared/src/test/scala-2.13+/cats/kernel/laws/ScalaVersionSpecificTests.scala b/kernel-laws/shared/src/test/scala-2.13+/cats/kernel/laws/ScalaVersionSpecificTests.scala index 54433bcfef..cdc8e679dd 100644 --- a/kernel-laws/shared/src/test/scala-2.13+/cats/kernel/laws/ScalaVersionSpecificTests.scala +++ b/kernel-laws/shared/src/test/scala-2.13+/cats/kernel/laws/ScalaVersionSpecificTests.scala @@ -22,9 +22,9 @@ package cats.kernel package laws -import cats.kernel.instances.int._ -import cats.kernel.instances.lazyList._ -import cats.kernel.instances.option._ +import cats.kernel.instances.int.* +import cats.kernel.instances.lazyList.* +import cats.kernel.instances.option.* import cats.kernel.laws.discipline.{EqTests, HashTests, MonoidTests, OrderTests, PartialOrderTests, SerializableTests} trait ScalaVersionSpecificTests { this: Tests => diff --git a/kernel-laws/shared/src/test/scala/cats/kernel/laws/LawTests.scala b/kernel-laws/shared/src/test/scala/cats/kernel/laws/LawTests.scala index 208a0410dd..17f306c181 100644 --- a/kernel-laws/shared/src/test/scala/cats/kernel/laws/LawTests.scala +++ b/kernel-laws/shared/src/test/scala/cats/kernel/laws/LawTests.scala @@ -22,7 +22,7 @@ package cats.kernel package laws -import cats.kernel.laws.discipline._ +import cats.kernel.laws.discipline.* import cats.platform.Platform import munit.DisciplineSuite import org.scalacheck.{Arbitrary, Cogen, Gen, Prop} @@ -35,7 +35,7 @@ import scala.collection.immutable.{BitSet, Queue, SortedMap, SortedSet} import scala.util.Random import java.util.UUID import java.util.concurrent.TimeUnit.{DAYS, HOURS, MICROSECONDS, MILLISECONDS, MINUTES, NANOSECONDS, SECONDS} -import compat.scalaVersionSpecific._ +import compat.scalaVersionSpecific.* import munit.ScalaCheckSuite import org.scalacheck.Test.Parameters @@ -132,7 +132,7 @@ class TestsConfig extends ScalaCheckSuite { class Tests extends TestsConfig with DisciplineSuite { - import KernelCheck._ + import KernelCheck.* test("The instances in scope are not ambiguous") { implicitly[Monoid[Option[String]]] @@ -527,7 +527,7 @@ final class LongRunningTests extends ScalaCheckSuite with DisciplineSuite { .withMaxSize(PropMaxSize) .withWorkers(PropWorkers) - import KernelCheck._ + import KernelCheck.* checkAll("Deeper test of Eq[Duration]", EqTests[Duration].eqv) checkAll("Deeper test of Eq[FiniteDuration]", EqTests[FiniteDuration].eqv) diff --git a/kernel/src/main/scala-2.12/cats/kernel/compat/HashCompat.scala b/kernel/src/main/scala-2.12/cats/kernel/compat/HashCompat.scala index 411028fd07..c4f6df93ad 100644 --- a/kernel/src/main/scala-2.12/cats/kernel/compat/HashCompat.scala +++ b/kernel/src/main/scala-2.12/cats/kernel/compat/HashCompat.scala @@ -48,7 +48,7 @@ import scala.annotation.nowarn private[kernel] class HashCompat { // Adapted from scala.util.hashing.MurmurHash#productHash. private[kernel] def product1HashWithPrefix(_1Hash: Int, @nowarn("cat=unused") prefix: String): Int = { - import scala.util.hashing.MurmurHash3._ + import scala.util.hashing.MurmurHash3.* var h = productSeed h = mix(h, _1Hash) finalizeHash(h, 1) @@ -56,7 +56,7 @@ private[kernel] class HashCompat { // Adapted from scala.util.hashing.MurmurHash#productHash. private[cats] def product2HashWithPrefix(_1Hash: Int, _2Hash: Int, @nowarn("cat=unused") prefix: String): Int = { - import scala.util.hashing.MurmurHash3._ + import scala.util.hashing.MurmurHash3.* var h = productSeed h = mix(h, _1Hash) h = mix(h, _2Hash) @@ -68,7 +68,7 @@ private[kernel] class HashCompat { // adapted from [[scala.util.hashing.MurmurHash3]], // but modified standard `Any#hashCode` to `ev.hash`. def listHash[A](x: List[A])(implicit A: Hash[A]): Int = { - import scala.util.hashing.MurmurHash3._ + import scala.util.hashing.MurmurHash3.* var n = 0 var h = seqSeed var elems = x @@ -84,7 +84,7 @@ private[kernel] class HashCompat { // adapted from scala.util.hashing.MurmurHash3 def orderedHash[A](xs: TraversableOnce[A])(implicit A: Hash[A]): Int = { - import scala.util.hashing.MurmurHash3._ + import scala.util.hashing.MurmurHash3.* var n = 0 var h = seqSeed xs.foreach { x => diff --git a/kernel/src/main/scala-2.13+/cats/kernel/compat/HashCompat.scala b/kernel/src/main/scala-2.13+/cats/kernel/compat/HashCompat.scala index 7ff34228c3..471d16958a 100644 --- a/kernel/src/main/scala-2.13+/cats/kernel/compat/HashCompat.scala +++ b/kernel/src/main/scala-2.13+/cats/kernel/compat/HashCompat.scala @@ -46,7 +46,7 @@ package compat private[kernel] class HashCompat { // Adapted from scala.util.hashing.MurmurHash#productHash. private[kernel] def product1HashWithPrefix(_1Hash: Int, prefix: String): Int = { - import scala.util.hashing.MurmurHash3._ + import scala.util.hashing.MurmurHash3.* var h = productSeed h = mix(h, prefix.hashCode) h = mix(h, _1Hash) @@ -55,7 +55,7 @@ private[kernel] class HashCompat { // Adapted from scala.util.hashing.MurmurHash#productHash. private[cats] def product2HashWithPrefix(_1Hash: Int, _2Hash: Int, prefix: String): Int = { - import scala.util.hashing.MurmurHash3._ + import scala.util.hashing.MurmurHash3.* var h = productSeed h = mix(h, prefix.hashCode) h = mix(h, _1Hash) diff --git a/kernel/src/main/scala-2.13+/cats/kernel/instances/ArraySeqInstances.scala b/kernel/src/main/scala-2.13+/cats/kernel/instances/ArraySeqInstances.scala index 4a03c3a88e..8a0c3d16fc 100644 --- a/kernel/src/main/scala-2.13+/cats/kernel/instances/ArraySeqInstances.scala +++ b/kernel/src/main/scala-2.13+/cats/kernel/instances/ArraySeqInstances.scala @@ -24,7 +24,7 @@ package instances import scala.annotation.tailrec import scala.collection.immutable.ArraySeq -import compat.scalaVersionSpecific._ +import compat.scalaVersionSpecific.* @suppressUnusedImportWarningForScalaVersionSpecific trait ArraySeqInstances extends ArraySeqInstances.ArraySeqInstances1 { diff --git a/kernel/src/main/scala/cats/kernel/Eq.scala b/kernel/src/main/scala/cats/kernel/Eq.scala index 585f43b87f..46ae9a7102 100644 --- a/kernel/src/main/scala/cats/kernel/Eq.scala +++ b/kernel/src/main/scala/cats/kernel/Eq.scala @@ -21,7 +21,7 @@ package cats.kernel -import cats.kernel.compat.scalaVersionSpecific._ +import cats.kernel.compat.scalaVersionSpecific.* import java.util.UUID import scala.collection.immutable.{BitSet, Queue, Seq, SortedMap, SortedSet} diff --git a/kernel/src/main/scala/cats/kernel/Monoid.scala b/kernel/src/main/scala/cats/kernel/Monoid.scala index 978fd98450..5856ddf726 100644 --- a/kernel/src/main/scala/cats/kernel/Monoid.scala +++ b/kernel/src/main/scala/cats/kernel/Monoid.scala @@ -22,7 +22,7 @@ package cats.kernel import scala.{specialized => sp} -import compat.scalaVersionSpecific._ +import compat.scalaVersionSpecific.* /** * A monoid is a semigroup with an identity. A monoid is a specialization of a diff --git a/kernel/src/main/scala/cats/kernel/PartialOrder.scala b/kernel/src/main/scala/cats/kernel/PartialOrder.scala index 2547883b76..1b126777a6 100644 --- a/kernel/src/main/scala/cats/kernel/PartialOrder.scala +++ b/kernel/src/main/scala/cats/kernel/PartialOrder.scala @@ -23,7 +23,7 @@ package cats.kernel import java.lang.Double.isNaN import scala.{specialized => sp} -import compat.scalaVersionSpecific._ +import compat.scalaVersionSpecific.* /** * The `PartialOrder` type class is used to define a partial ordering on some type `A`. diff --git a/kernel/src/main/scala/cats/kernel/Semigroup.scala b/kernel/src/main/scala/cats/kernel/Semigroup.scala index e861f481fe..f7fbb0d59f 100644 --- a/kernel/src/main/scala/cats/kernel/Semigroup.scala +++ b/kernel/src/main/scala/cats/kernel/Semigroup.scala @@ -27,7 +27,7 @@ import scala.concurrent.{ExecutionContext, Future} import scala.concurrent.duration.{Duration, FiniteDuration} import scala.{specialized => sp} import scala.util.{Failure, Success, Try} -import compat.scalaVersionSpecific._ +import compat.scalaVersionSpecific.* /** * A semigroup is any set `A` with an associative operation (`combine`). diff --git a/kernel/src/main/scala/cats/kernel/instances/FunctionInstances.scala b/kernel/src/main/scala/cats/kernel/instances/FunctionInstances.scala index 6451507692..384e2b5ae5 100644 --- a/kernel/src/main/scala/cats/kernel/instances/FunctionInstances.scala +++ b/kernel/src/main/scala/cats/kernel/instances/FunctionInstances.scala @@ -22,7 +22,7 @@ package cats.kernel package instances -import cats.kernel.compat.scalaVersionSpecific._ +import cats.kernel.compat.scalaVersionSpecific.* import scala.util.control.TailCalls.{done, tailcall, TailRec} @suppressUnusedImportWarningForScalaVersionSpecific diff --git a/kernel/src/main/scala/cats/kernel/instances/ListInstances.scala b/kernel/src/main/scala/cats/kernel/instances/ListInstances.scala index 59720af4e2..989d9309be 100644 --- a/kernel/src/main/scala/cats/kernel/instances/ListInstances.scala +++ b/kernel/src/main/scala/cats/kernel/instances/ListInstances.scala @@ -23,7 +23,7 @@ package cats.kernel package instances import scala.annotation.{nowarn, tailrec} -import compat.scalaVersionSpecific._ +import compat.scalaVersionSpecific.* @suppressUnusedImportWarningForScalaVersionSpecific trait ListInstances extends ListInstances1 { diff --git a/kernel/src/main/scala/cats/kernel/instances/MapInstances.scala b/kernel/src/main/scala/cats/kernel/instances/MapInstances.scala index 528063e7cf..f326f76dd7 100644 --- a/kernel/src/main/scala/cats/kernel/instances/MapInstances.scala +++ b/kernel/src/main/scala/cats/kernel/instances/MapInstances.scala @@ -46,7 +46,7 @@ import org.typelevel.scalaccompat.annotation.unused import scala.collection.mutable -import compat.scalaVersionSpecific._ +import compat.scalaVersionSpecific.* @suppressUnusedImportWarningForScalaVersionSpecific trait MapInstances extends MapInstances1 { @@ -67,7 +67,7 @@ private[instances] trait MapInstances1 { class MapHash[K, V](implicit V: Hash[V]) extends MapEq[K, V]()(V) with Hash[Map[K, V]] { // adapted from [[scala.util.hashing.MurmurHash3]], // but modified standard `Any#hashCode` to `ev.hash`. - import scala.util.hashing.MurmurHash3._ + import scala.util.hashing.MurmurHash3.* def hash(x: Map[K, V]): Int = { var a, b, n = 0 var c = 1 diff --git a/kernel/src/main/scala/cats/kernel/instances/QueueInstances.scala b/kernel/src/main/scala/cats/kernel/instances/QueueInstances.scala index a266f61345..aac03d4a76 100644 --- a/kernel/src/main/scala/cats/kernel/instances/QueueInstances.scala +++ b/kernel/src/main/scala/cats/kernel/instances/QueueInstances.scala @@ -23,7 +23,7 @@ package cats.kernel package instances import scala.collection.immutable.Queue -import compat.scalaVersionSpecific._ +import compat.scalaVersionSpecific.* import scala.annotation.nowarn diff --git a/kernel/src/main/scala/cats/kernel/instances/SeqInstances.scala b/kernel/src/main/scala/cats/kernel/instances/SeqInstances.scala index 6282c5e894..56e1956a81 100644 --- a/kernel/src/main/scala/cats/kernel/instances/SeqInstances.scala +++ b/kernel/src/main/scala/cats/kernel/instances/SeqInstances.scala @@ -25,7 +25,7 @@ package instances import scala.annotation.nowarn import scala.collection.immutable.Seq -import compat.scalaVersionSpecific._ +import compat.scalaVersionSpecific.* @suppressUnusedImportWarningForScalaVersionSpecific trait SeqInstances extends SeqInstances1 { diff --git a/kernel/src/main/scala/cats/kernel/instances/SortedMapInstances.scala b/kernel/src/main/scala/cats/kernel/instances/SortedMapInstances.scala index d0f851e777..55286e12f0 100644 --- a/kernel/src/main/scala/cats/kernel/instances/SortedMapInstances.scala +++ b/kernel/src/main/scala/cats/kernel/instances/SortedMapInstances.scala @@ -117,7 +117,7 @@ class SortedMapHash[K, V](implicit V: Hash[V], K: Hash[K]) extends SortedMapEq[K // adapted from [[scala.util.hashing.MurmurHash3]], // but modified standard `Any#hashCode` to `ev.hash`. - import scala.util.hashing.MurmurHash3._ + import scala.util.hashing.MurmurHash3.* def hash(x: SortedMap[K, V]): Int = { var a, b, n = 0 var c = 1 diff --git a/kernel/src/main/scala/cats/kernel/instances/SortedSetInstances.scala b/kernel/src/main/scala/cats/kernel/instances/SortedSetInstances.scala index 553b2dde71..2dc4469c49 100644 --- a/kernel/src/main/scala/cats/kernel/instances/SortedSetInstances.scala +++ b/kernel/src/main/scala/cats/kernel/instances/SortedSetInstances.scala @@ -74,7 +74,7 @@ class SortedSetOrder[A: Order] extends Order[SortedSet[A]] { // FIXME use context bound in 3.x class SortedSetHash[A](implicit hashA: Hash[A]) extends Hash[SortedSet[A]] { - import scala.util.hashing.MurmurHash3._ + import scala.util.hashing.MurmurHash3.* @deprecated("Use the constructor _without_ Order instead, since Order is not required", "2.1.0") private[instances] def this(o: Order[A], h: Hash[A]) = this()(h) diff --git a/kernel/src/main/scala/cats/kernel/instances/StaticMethods.scala b/kernel/src/main/scala/cats/kernel/instances/StaticMethods.scala index 140df84b43..920eca9f09 100644 --- a/kernel/src/main/scala/cats/kernel/instances/StaticMethods.scala +++ b/kernel/src/main/scala/cats/kernel/instances/StaticMethods.scala @@ -45,7 +45,7 @@ package instances import scala.collection.immutable.{IndexedSeq => ImIndexedSeq} import scala.collection.mutable -import compat.scalaVersionSpecific._ +import compat.scalaVersionSpecific.* @suppressUnusedImportWarningForScalaVersionSpecific object StaticMethods extends cats.kernel.compat.HashCompat { @@ -140,7 +140,7 @@ object StaticMethods extends cats.kernel.compat.HashCompat { // Adapted from scala.util.hashing.MurmurHash#productHash. def product1Hash(_1Hash: Int): Int = { - import scala.util.hashing.MurmurHash3._ + import scala.util.hashing.MurmurHash3.* var h = productSeed h = mix(h, _1Hash) finalizeHash(h, 1) @@ -148,7 +148,7 @@ object StaticMethods extends cats.kernel.compat.HashCompat { // Adapted from scala.util.hashing.MurmurHash#productHash. def product2Hash(_1Hash: Int, _2Hash: Int): Int = { - import scala.util.hashing.MurmurHash3._ + import scala.util.hashing.MurmurHash3.* var h = productSeed h = mix(h, _1Hash) h = mix(h, _2Hash) diff --git a/kernel/src/main/scala/cats/kernel/instances/StringInstances.scala b/kernel/src/main/scala/cats/kernel/instances/StringInstances.scala index d4ad88128b..444a8401d9 100644 --- a/kernel/src/main/scala/cats/kernel/instances/StringInstances.scala +++ b/kernel/src/main/scala/cats/kernel/instances/StringInstances.scala @@ -21,7 +21,7 @@ package cats.kernel package instances -import compat.scalaVersionSpecific._ +import compat.scalaVersionSpecific.* @suppressUnusedImportWarningForScalaVersionSpecific trait StringInstances { implicit val catsKernelStdOrderForString: Order[String] with Hash[String] with LowerBounded[String] = new StringOrder diff --git a/kernel/src/main/scala/cats/kernel/instances/UnitInstances.scala b/kernel/src/main/scala/cats/kernel/instances/UnitInstances.scala index b7b28974a6..90557c89b3 100644 --- a/kernel/src/main/scala/cats/kernel/instances/UnitInstances.scala +++ b/kernel/src/main/scala/cats/kernel/instances/UnitInstances.scala @@ -21,7 +21,7 @@ package cats.kernel package instances -import compat.scalaVersionSpecific._ +import compat.scalaVersionSpecific.* @suppressUnusedImportWarningForScalaVersionSpecific trait UnitInstances { diff --git a/kernel/src/main/scala/cats/kernel/instances/VectorInstances.scala b/kernel/src/main/scala/cats/kernel/instances/VectorInstances.scala index 175d59f880..f4d1392734 100644 --- a/kernel/src/main/scala/cats/kernel/instances/VectorInstances.scala +++ b/kernel/src/main/scala/cats/kernel/instances/VectorInstances.scala @@ -21,7 +21,7 @@ package cats.kernel package instances -import compat.scalaVersionSpecific._ +import compat.scalaVersionSpecific.* import scala.annotation.nowarn diff --git a/laws/src/main/scala/cats/laws/AlignLaws.scala b/laws/src/main/scala/cats/laws/AlignLaws.scala index eb83c47241..e7a435ed74 100644 --- a/laws/src/main/scala/cats/laws/AlignLaws.scala +++ b/laws/src/main/scala/cats/laws/AlignLaws.scala @@ -22,8 +22,8 @@ package cats package laws -import cats.syntax.align._ -import cats.syntax.functor._ +import cats.syntax.align.* +import cats.syntax.functor.* import cats.data.Ior import cats.data.Ior.{Both, Left, Right} diff --git a/laws/src/main/scala/cats/laws/AlternativeLaws.scala b/laws/src/main/scala/cats/laws/AlternativeLaws.scala index adb9cdfd99..599eefcb41 100644 --- a/laws/src/main/scala/cats/laws/AlternativeLaws.scala +++ b/laws/src/main/scala/cats/laws/AlternativeLaws.scala @@ -22,8 +22,8 @@ package cats package laws -import cats.syntax.all._ -import cats.kernel.compat.scalaVersionSpecific._ +import cats.syntax.all.* +import cats.kernel.compat.scalaVersionSpecific.* trait AlternativeLaws[F[_]] extends NonEmptyAlternativeLaws[F] with MonoidKLaws[F] { implicit override def F: Alternative[F] diff --git a/laws/src/main/scala/cats/laws/ApplicativeLaws.scala b/laws/src/main/scala/cats/laws/ApplicativeLaws.scala index a0109f7d0f..c8e44453c2 100644 --- a/laws/src/main/scala/cats/laws/ApplicativeLaws.scala +++ b/laws/src/main/scala/cats/laws/ApplicativeLaws.scala @@ -22,8 +22,8 @@ package cats package laws -import cats.syntax.apply._ -import cats.syntax.functor._ +import cats.syntax.apply.* +import cats.syntax.functor.* /** * Laws that must be obeyed by any `Applicative`. diff --git a/laws/src/main/scala/cats/laws/ApplyLaws.scala b/laws/src/main/scala/cats/laws/ApplyLaws.scala index e32a8b5664..9b9151d705 100644 --- a/laws/src/main/scala/cats/laws/ApplyLaws.scala +++ b/laws/src/main/scala/cats/laws/ApplyLaws.scala @@ -22,8 +22,8 @@ package cats package laws -import cats.syntax.apply._ -import cats.syntax.functor._ +import cats.syntax.apply.* +import cats.syntax.functor.* /** * Laws that must be obeyed by any `Apply`. diff --git a/laws/src/main/scala/cats/laws/ArrowChoiceLaws.scala b/laws/src/main/scala/cats/laws/ArrowChoiceLaws.scala index 2be4ba950f..11112c2eb8 100644 --- a/laws/src/main/scala/cats/laws/ArrowChoiceLaws.scala +++ b/laws/src/main/scala/cats/laws/ArrowChoiceLaws.scala @@ -23,9 +23,9 @@ package cats package laws import cats.arrow.ArrowChoice -import cats.syntax.arrowChoice._ -import cats.syntax.compose._ -import cats.syntax.profunctor._ +import cats.syntax.arrowChoice.* +import cats.syntax.compose.* +import cats.syntax.profunctor.* /** * Laws that must be obeyed by any `cats.arrow.ArrowChoice`. diff --git a/laws/src/main/scala/cats/laws/ArrowLaws.scala b/laws/src/main/scala/cats/laws/ArrowLaws.scala index 2326834905..6a6bd21e29 100644 --- a/laws/src/main/scala/cats/laws/ArrowLaws.scala +++ b/laws/src/main/scala/cats/laws/ArrowLaws.scala @@ -23,10 +23,10 @@ package cats package laws import cats.arrow.Arrow -import cats.instances.function._ -import cats.syntax.arrow._ -import cats.syntax.compose._ -import cats.syntax.strong._ +import cats.instances.function.* +import cats.syntax.arrow.* +import cats.syntax.compose.* +import cats.syntax.strong.* /** * Laws that must be obeyed by any `cats.arrow.Arrow`. diff --git a/laws/src/main/scala/cats/laws/BifunctorLaws.scala b/laws/src/main/scala/cats/laws/BifunctorLaws.scala index ccdefc3d54..9359bde93b 100644 --- a/laws/src/main/scala/cats/laws/BifunctorLaws.scala +++ b/laws/src/main/scala/cats/laws/BifunctorLaws.scala @@ -22,7 +22,7 @@ package cats.laws import cats.Bifunctor -import cats.syntax.bifunctor._ +import cats.syntax.bifunctor.* /** * Laws that must be obeyed by any `Bifunctor`. diff --git a/laws/src/main/scala/cats/laws/CategoryLaws.scala b/laws/src/main/scala/cats/laws/CategoryLaws.scala index 4adf359efe..b9793b9f2c 100644 --- a/laws/src/main/scala/cats/laws/CategoryLaws.scala +++ b/laws/src/main/scala/cats/laws/CategoryLaws.scala @@ -23,7 +23,7 @@ package cats package laws import cats.arrow.Category -import cats.syntax.compose._ +import cats.syntax.compose.* /** * Laws that must be obeyed by any `cats.arrow.Category`. diff --git a/laws/src/main/scala/cats/laws/ChoiceLaws.scala b/laws/src/main/scala/cats/laws/ChoiceLaws.scala index 83743a4e17..185da7f65b 100644 --- a/laws/src/main/scala/cats/laws/ChoiceLaws.scala +++ b/laws/src/main/scala/cats/laws/ChoiceLaws.scala @@ -23,8 +23,8 @@ package cats package laws import cats.arrow.Choice -import cats.syntax.choice._ -import cats.syntax.compose._ +import cats.syntax.choice.* +import cats.syntax.compose.* /** * Laws that must be obeyed by any `cats.arrow.Choice`. diff --git a/laws/src/main/scala/cats/laws/CoflatMapLaws.scala b/laws/src/main/scala/cats/laws/CoflatMapLaws.scala index b3c4c5c3f2..d71053c8ea 100644 --- a/laws/src/main/scala/cats/laws/CoflatMapLaws.scala +++ b/laws/src/main/scala/cats/laws/CoflatMapLaws.scala @@ -23,7 +23,7 @@ package cats package laws import cats.data.Cokleisli -import cats.syntax.all._ +import cats.syntax.all.* /** * Laws that must be obeyed by any `CoflatMap`. diff --git a/laws/src/main/scala/cats/laws/CommutativeArrowLaws.scala b/laws/src/main/scala/cats/laws/CommutativeArrowLaws.scala index 95b324b98b..73bf230e97 100644 --- a/laws/src/main/scala/cats/laws/CommutativeArrowLaws.scala +++ b/laws/src/main/scala/cats/laws/CommutativeArrowLaws.scala @@ -23,8 +23,8 @@ package cats package laws import cats.arrow.CommutativeArrow -import cats.syntax.compose._ -import cats.syntax.strong._ +import cats.syntax.compose.* +import cats.syntax.strong.* /** * Reference: "Causal Commutative Arrows", Journal of Functional Programming diff --git a/laws/src/main/scala/cats/laws/ComonadLaws.scala b/laws/src/main/scala/cats/laws/ComonadLaws.scala index 5008253717..d7823624f0 100644 --- a/laws/src/main/scala/cats/laws/ComonadLaws.scala +++ b/laws/src/main/scala/cats/laws/ComonadLaws.scala @@ -23,7 +23,7 @@ package cats package laws import cats.data.Cokleisli -import cats.syntax.all._ +import cats.syntax.all.* /** * Laws that must be obeyed by any `Comonad`. diff --git a/laws/src/main/scala/cats/laws/ComposeLaws.scala b/laws/src/main/scala/cats/laws/ComposeLaws.scala index 1d98c4e86e..f9fd20c439 100644 --- a/laws/src/main/scala/cats/laws/ComposeLaws.scala +++ b/laws/src/main/scala/cats/laws/ComposeLaws.scala @@ -23,7 +23,7 @@ package cats package laws import cats.arrow.Compose -import cats.syntax.compose._ +import cats.syntax.compose.* /** * Laws that must be obeyed by any `cats.arrow.Compose`. diff --git a/laws/src/main/scala/cats/laws/ContravariantLaws.scala b/laws/src/main/scala/cats/laws/ContravariantLaws.scala index 39f14e0250..aa233fd973 100644 --- a/laws/src/main/scala/cats/laws/ContravariantLaws.scala +++ b/laws/src/main/scala/cats/laws/ContravariantLaws.scala @@ -23,7 +23,7 @@ package cats package laws import cats.Contravariant -import cats.syntax.contravariant._ +import cats.syntax.contravariant.* /** * Laws that must be obeyed by any `cats.Contravariant`. diff --git a/laws/src/main/scala/cats/laws/ContravariantMonoidalLaws.scala b/laws/src/main/scala/cats/laws/ContravariantMonoidalLaws.scala index e4d5cd09aa..4cbf668616 100644 --- a/laws/src/main/scala/cats/laws/ContravariantMonoidalLaws.scala +++ b/laws/src/main/scala/cats/laws/ContravariantMonoidalLaws.scala @@ -23,8 +23,8 @@ package cats package laws import cats.ContravariantMonoidal -import cats.syntax.contravariant._ -import cats.syntax.contravariantSemigroupal._ +import cats.syntax.contravariant.* +import cats.syntax.contravariantSemigroupal.* /** * Laws that must hold for any `cats.ContravariantMonoidal`. diff --git a/laws/src/main/scala/cats/laws/ContravariantSemigroupalLaws.scala b/laws/src/main/scala/cats/laws/ContravariantSemigroupalLaws.scala index 4dfef80bb4..943c81fb0e 100644 --- a/laws/src/main/scala/cats/laws/ContravariantSemigroupalLaws.scala +++ b/laws/src/main/scala/cats/laws/ContravariantSemigroupalLaws.scala @@ -23,7 +23,7 @@ package cats package laws import cats.ContravariantSemigroupal -import cats.syntax.contravariantSemigroupal._ +import cats.syntax.contravariantSemigroupal.* /** * Laws that are expected for any `cats.ContravariantSemigroupal`. diff --git a/laws/src/main/scala/cats/laws/DistributiveLaws.scala b/laws/src/main/scala/cats/laws/DistributiveLaws.scala index 85f603e0ea..4fdbf8be82 100644 --- a/laws/src/main/scala/cats/laws/DistributiveLaws.scala +++ b/laws/src/main/scala/cats/laws/DistributiveLaws.scala @@ -24,7 +24,7 @@ package laws import cats.Id import cats.data.Nested -import cats.syntax.distributive._ +import cats.syntax.distributive.* trait DistributiveLaws[F[_]] extends FunctorLaws[F] { implicit override def F: Distributive[F] diff --git a/laws/src/main/scala/cats/laws/FlatMapLaws.scala b/laws/src/main/scala/cats/laws/FlatMapLaws.scala index 4e1bb1a10f..482ec6b430 100644 --- a/laws/src/main/scala/cats/laws/FlatMapLaws.scala +++ b/laws/src/main/scala/cats/laws/FlatMapLaws.scala @@ -23,9 +23,9 @@ package cats package laws import cats.data.Kleisli -import cats.syntax.apply._ -import cats.syntax.flatMap._ -import cats.syntax.functor._ +import cats.syntax.apply.* +import cats.syntax.flatMap.* +import cats.syntax.functor.* /** * Laws that must be obeyed by any `FlatMap`. diff --git a/laws/src/main/scala/cats/laws/FoldableLaws.scala b/laws/src/main/scala/cats/laws/FoldableLaws.scala index c8c38d15c0..7ba95dfb24 100644 --- a/laws/src/main/scala/cats/laws/FoldableLaws.scala +++ b/laws/src/main/scala/cats/laws/FoldableLaws.scala @@ -22,7 +22,7 @@ package cats package laws -import cats.syntax.all._ +import cats.syntax.all.* import scala.collection.mutable diff --git a/laws/src/main/scala/cats/laws/FunctorLaws.scala b/laws/src/main/scala/cats/laws/FunctorLaws.scala index d7044675ff..0e3d2bc622 100644 --- a/laws/src/main/scala/cats/laws/FunctorLaws.scala +++ b/laws/src/main/scala/cats/laws/FunctorLaws.scala @@ -22,7 +22,7 @@ package cats package laws -import cats.syntax.functor._ +import cats.syntax.functor.* /** * Laws that must be obeyed by any `Functor`. diff --git a/laws/src/main/scala/cats/laws/InvariantLaws.scala b/laws/src/main/scala/cats/laws/InvariantLaws.scala index 65920fcc05..389e049802 100644 --- a/laws/src/main/scala/cats/laws/InvariantLaws.scala +++ b/laws/src/main/scala/cats/laws/InvariantLaws.scala @@ -23,7 +23,7 @@ package cats package laws import cats.Invariant -import cats.syntax.invariant._ +import cats.syntax.invariant.* /** * Laws that must be obeyed by any `cats.Invariant`. diff --git a/laws/src/main/scala/cats/laws/InvariantMonoidalLaws.scala b/laws/src/main/scala/cats/laws/InvariantMonoidalLaws.scala index 782777be58..a801b9253f 100644 --- a/laws/src/main/scala/cats/laws/InvariantMonoidalLaws.scala +++ b/laws/src/main/scala/cats/laws/InvariantMonoidalLaws.scala @@ -27,8 +27,8 @@ package laws */ trait InvariantMonoidalLaws[F[_]] extends InvariantSemigroupalLaws[F] { implicit override def F: InvariantMonoidal[F] - import cats.syntax.semigroupal._ - import cats.syntax.invariant._ + import cats.syntax.semigroupal.* + import cats.syntax.invariant.* def invariantMonoidalLeftIdentity[A, B](fa: F[A]): IsEq[F[A]] = F.unit.product(fa).imap(_._2)(a => ((), a)) <-> fa diff --git a/laws/src/main/scala/cats/laws/InvariantSemigroupalLaws.scala b/laws/src/main/scala/cats/laws/InvariantSemigroupalLaws.scala index 216c2a06c5..f7182eeaef 100644 --- a/laws/src/main/scala/cats/laws/InvariantSemigroupalLaws.scala +++ b/laws/src/main/scala/cats/laws/InvariantSemigroupalLaws.scala @@ -27,8 +27,8 @@ package laws */ trait InvariantSemigroupalLaws[F[_]] extends InvariantLaws[F] with SemigroupalLaws[F] { implicit override def F: InvariantSemigroupal[F] - import cats.syntax.semigroupal._ - import cats.syntax.invariant._ + import cats.syntax.semigroupal.* + import cats.syntax.invariant.* def invariantSemigroupalAssociativity[A, B, C](fa: F[A], fb: F[B], fc: F[C]): IsEq[F[(A, (B, C))]] = fa.product(fb.product(fc)) <-> fa diff --git a/laws/src/main/scala/cats/laws/MonadLaws.scala b/laws/src/main/scala/cats/laws/MonadLaws.scala index 38ca928247..db071a559d 100644 --- a/laws/src/main/scala/cats/laws/MonadLaws.scala +++ b/laws/src/main/scala/cats/laws/MonadLaws.scala @@ -23,7 +23,7 @@ package cats package laws import cats.data.Kleisli -import cats.syntax.all._ +import cats.syntax.all.* /** * Laws that must be obeyed by any `Monad`. diff --git a/laws/src/main/scala/cats/laws/NonEmptyAlternativeLaws.scala b/laws/src/main/scala/cats/laws/NonEmptyAlternativeLaws.scala index 413585c79c..f3a7de3dae 100644 --- a/laws/src/main/scala/cats/laws/NonEmptyAlternativeLaws.scala +++ b/laws/src/main/scala/cats/laws/NonEmptyAlternativeLaws.scala @@ -22,7 +22,7 @@ package cats package laws -import cats.syntax.all._ +import cats.syntax.all.* trait NonEmptyAlternativeLaws[F[_]] extends ApplicativeLaws[F] with SemigroupKLaws[F] { implicit override def F: NonEmptyAlternative[F] diff --git a/laws/src/main/scala/cats/laws/NonEmptyTraverseLaws.scala b/laws/src/main/scala/cats/laws/NonEmptyTraverseLaws.scala index 8530ed9ef9..4016396181 100644 --- a/laws/src/main/scala/cats/laws/NonEmptyTraverseLaws.scala +++ b/laws/src/main/scala/cats/laws/NonEmptyTraverseLaws.scala @@ -23,8 +23,8 @@ package cats.laws import cats.{Apply, Id, NonEmptyTraverse, Semigroup} import cats.data.{Const, Nested} -import cats.syntax.nonEmptyTraverse._ -import cats.syntax.reducible._ +import cats.syntax.nonEmptyTraverse.* +import cats.syntax.reducible.* trait NonEmptyTraverseLaws[F[_]] extends TraverseLaws[F] with ReducibleLaws[F] { implicit override def F: NonEmptyTraverse[F] diff --git a/laws/src/main/scala/cats/laws/ProfunctorLaws.scala b/laws/src/main/scala/cats/laws/ProfunctorLaws.scala index e1b83a4b5d..1310e7ed3e 100644 --- a/laws/src/main/scala/cats/laws/ProfunctorLaws.scala +++ b/laws/src/main/scala/cats/laws/ProfunctorLaws.scala @@ -23,7 +23,7 @@ package cats package laws import cats.arrow.Profunctor -import cats.syntax.profunctor._ +import cats.syntax.profunctor.* /** * Laws that must be obeyed by any `cats.functor.Profunctor`. diff --git a/laws/src/main/scala/cats/laws/ReducibleLaws.scala b/laws/src/main/scala/cats/laws/ReducibleLaws.scala index c68b9a7f4a..ab15ae4c1a 100644 --- a/laws/src/main/scala/cats/laws/ReducibleLaws.scala +++ b/laws/src/main/scala/cats/laws/ReducibleLaws.scala @@ -22,7 +22,7 @@ package cats package laws -import cats.syntax.all._ +import cats.syntax.all.* trait ReducibleLaws[F[_]] extends FoldableLaws[F] { implicit def F: Reducible[F] diff --git a/laws/src/main/scala/cats/laws/ShortCircuitingLaws.scala b/laws/src/main/scala/cats/laws/ShortCircuitingLaws.scala index 52838ddb74..495288f223 100644 --- a/laws/src/main/scala/cats/laws/ShortCircuitingLaws.scala +++ b/laws/src/main/scala/cats/laws/ShortCircuitingLaws.scala @@ -23,11 +23,11 @@ package cats.laws import java.util.concurrent.atomic.AtomicLong -import cats.instances.option._ -import cats.syntax.foldable._ -import cats.syntax.traverse._ -import cats.syntax.nonEmptyTraverse._ -import cats.syntax.traverseFilter._ +import cats.instances.option.* +import cats.syntax.foldable.* +import cats.syntax.traverse.* +import cats.syntax.nonEmptyTraverse.* +import cats.syntax.traverseFilter.* import cats.{Applicative, Foldable, MonoidK, NonEmptyTraverse, Traverse, TraverseFilter} trait ShortCircuitingLaws[F[_]] { diff --git a/laws/src/main/scala/cats/laws/StrongLaws.scala b/laws/src/main/scala/cats/laws/StrongLaws.scala index 30ea52a057..4f2d37dfc0 100644 --- a/laws/src/main/scala/cats/laws/StrongLaws.scala +++ b/laws/src/main/scala/cats/laws/StrongLaws.scala @@ -23,8 +23,8 @@ package cats package laws import cats.arrow.Strong -import cats.syntax.profunctor._ -import cats.syntax.strong._ +import cats.syntax.profunctor.* +import cats.syntax.strong.* /** * Laws that must be obeyed by any `cats.functor.Strong`. diff --git a/laws/src/main/scala/cats/laws/TraverseFilterLaws.scala b/laws/src/main/scala/cats/laws/TraverseFilterLaws.scala index f4dc4040e5..8f4c543819 100644 --- a/laws/src/main/scala/cats/laws/TraverseFilterLaws.scala +++ b/laws/src/main/scala/cats/laws/TraverseFilterLaws.scala @@ -23,8 +23,8 @@ package cats package laws import cats.data.Nested -import cats.syntax.all._ -import cats.instances.option._ +import cats.syntax.all.* +import cats.instances.option.* trait TraverseFilterLaws[F[_]] extends FunctorFilterLaws[F] { implicit override def F: TraverseFilter[F] diff --git a/laws/src/main/scala/cats/laws/TraverseLaws.scala b/laws/src/main/scala/cats/laws/TraverseLaws.scala index d9ab4d84b6..5c9bb7d952 100644 --- a/laws/src/main/scala/cats/laws/TraverseLaws.scala +++ b/laws/src/main/scala/cats/laws/TraverseLaws.scala @@ -24,8 +24,8 @@ package laws import cats.Id import cats.data.{Const, Nested, State, StateT} -import cats.syntax.traverse._ -import cats.syntax.foldable._ +import cats.syntax.traverse.* +import cats.syntax.foldable.* trait TraverseLaws[F[_]] extends FunctorLaws[F] with FoldableLaws[F] with UnorderedTraverseLaws[F] { implicit override def F: Traverse[F] diff --git a/laws/src/main/scala/cats/laws/discipline/AlignTests.scala b/laws/src/main/scala/cats/laws/discipline/AlignTests.scala index 4b4a37bb60..c0d2dc2496 100644 --- a/laws/src/main/scala/cats/laws/discipline/AlignTests.scala +++ b/laws/src/main/scala/cats/laws/discipline/AlignTests.scala @@ -24,7 +24,7 @@ package laws package discipline import org.scalacheck.{Arbitrary, Cogen, Prop} -import Prop._ +import Prop.* import cats.data.Ior import org.typelevel.discipline.Laws diff --git a/laws/src/main/scala/cats/laws/discipline/AlternativeTests.scala b/laws/src/main/scala/cats/laws/discipline/AlternativeTests.scala index b946896690..38feae4565 100644 --- a/laws/src/main/scala/cats/laws/discipline/AlternativeTests.scala +++ b/laws/src/main/scala/cats/laws/discipline/AlternativeTests.scala @@ -25,7 +25,7 @@ package discipline import cats.laws.discipline.SemigroupalTests.Isomorphisms import org.scalacheck.{Arbitrary, Cogen, Prop} -import Prop._ +import Prop.* trait AlternativeTests[F[_]] extends NonEmptyAlternativeTests[F] with MonoidKTests[F] { def laws: AlternativeLaws[F] diff --git a/laws/src/main/scala/cats/laws/discipline/ApplicativeErrorTests.scala b/laws/src/main/scala/cats/laws/discipline/ApplicativeErrorTests.scala index 5597fad20a..eaf80048a5 100644 --- a/laws/src/main/scala/cats/laws/discipline/ApplicativeErrorTests.scala +++ b/laws/src/main/scala/cats/laws/discipline/ApplicativeErrorTests.scala @@ -25,7 +25,7 @@ package discipline import cats.data.EitherT import cats.laws.discipline.SemigroupalTests.Isomorphisms -import cats.laws.discipline.arbitrary._ +import cats.laws.discipline.arbitrary.* import org.scalacheck.{Arbitrary, Cogen, Prop} import org.scalacheck.Prop.forAll diff --git a/laws/src/main/scala/cats/laws/discipline/ApplicativeTests.scala b/laws/src/main/scala/cats/laws/discipline/ApplicativeTests.scala index 8ac2829ee2..b5cb152ead 100644 --- a/laws/src/main/scala/cats/laws/discipline/ApplicativeTests.scala +++ b/laws/src/main/scala/cats/laws/discipline/ApplicativeTests.scala @@ -24,7 +24,7 @@ package laws package discipline import cats.laws.discipline.SemigroupalTests.Isomorphisms -import org.scalacheck.Prop._ +import org.scalacheck.Prop.* import org.scalacheck.{Arbitrary, Cogen, Gen} trait ApplicativeTests[F[_]] extends ApplyTests[F] { diff --git a/laws/src/main/scala/cats/laws/discipline/ArrowChoiceTests.scala b/laws/src/main/scala/cats/laws/discipline/ArrowChoiceTests.scala index 8d44b51e55..335661b23f 100644 --- a/laws/src/main/scala/cats/laws/discipline/ArrowChoiceTests.scala +++ b/laws/src/main/scala/cats/laws/discipline/ArrowChoiceTests.scala @@ -24,9 +24,9 @@ package laws package discipline import cats.arrow.ArrowChoice -import cats.instances.function._ +import cats.instances.function.* import org.scalacheck.{Arbitrary, Cogen, Prop} -import Prop._ +import Prop.* trait ArrowChoiceTests[F[_, _]] extends ArrowTests[F] with ChoiceTests[F] { def laws: ArrowChoiceLaws[F] diff --git a/laws/src/main/scala/cats/laws/discipline/ArrowTests.scala b/laws/src/main/scala/cats/laws/discipline/ArrowTests.scala index 3fc52c40a0..9a071121cd 100644 --- a/laws/src/main/scala/cats/laws/discipline/ArrowTests.scala +++ b/laws/src/main/scala/cats/laws/discipline/ArrowTests.scala @@ -25,7 +25,7 @@ package discipline import cats.arrow.Arrow import org.scalacheck.{Arbitrary, Cogen, Prop} -import Prop._ +import Prop.* trait ArrowTests[F[_, _]] extends CategoryTests[F] with StrongTests[F] { def laws: ArrowLaws[F] diff --git a/laws/src/main/scala/cats/laws/discipline/BifoldableTests.scala b/laws/src/main/scala/cats/laws/discipline/BifoldableTests.scala index 478d0d8936..9306e674e4 100644 --- a/laws/src/main/scala/cats/laws/discipline/BifoldableTests.scala +++ b/laws/src/main/scala/cats/laws/discipline/BifoldableTests.scala @@ -24,7 +24,7 @@ package laws package discipline import org.scalacheck.{Arbitrary, Cogen} -import org.scalacheck.Prop._ +import org.scalacheck.Prop.* import org.typelevel.discipline.Laws trait BifoldableTests[F[_, _]] extends Laws { diff --git a/laws/src/main/scala/cats/laws/discipline/BifunctorTests.scala b/laws/src/main/scala/cats/laws/discipline/BifunctorTests.scala index 2ed10fadc5..171494aaa0 100644 --- a/laws/src/main/scala/cats/laws/discipline/BifunctorTests.scala +++ b/laws/src/main/scala/cats/laws/discipline/BifunctorTests.scala @@ -24,7 +24,7 @@ package cats.laws.discipline import cats.{Bifunctor, Eq} import cats.laws.BifunctorLaws import org.scalacheck.Arbitrary -import org.scalacheck.Prop._ +import org.scalacheck.Prop.* import org.typelevel.discipline.Laws trait BifunctorTests[F[_, _]] extends Laws { diff --git a/laws/src/main/scala/cats/laws/discipline/BimonadTests.scala b/laws/src/main/scala/cats/laws/discipline/BimonadTests.scala index 716f42078d..25e9f0f660 100644 --- a/laws/src/main/scala/cats/laws/discipline/BimonadTests.scala +++ b/laws/src/main/scala/cats/laws/discipline/BimonadTests.scala @@ -25,7 +25,7 @@ package discipline import cats.laws.discipline.SemigroupalTests.Isomorphisms import org.scalacheck.{Arbitrary, Cogen, Prop} -import Prop._ +import Prop.* trait BimonadTests[F[_]] extends MonadTests[F] with ComonadTests[F] { def laws: BimonadLaws[F] diff --git a/laws/src/main/scala/cats/laws/discipline/CategoryTests.scala b/laws/src/main/scala/cats/laws/discipline/CategoryTests.scala index 4875bff4ea..d491265457 100644 --- a/laws/src/main/scala/cats/laws/discipline/CategoryTests.scala +++ b/laws/src/main/scala/cats/laws/discipline/CategoryTests.scala @@ -26,7 +26,7 @@ package discipline import cats.arrow.Category import org.scalacheck.Arbitrary import org.scalacheck.Prop -import Prop._ +import Prop.* trait CategoryTests[F[_, _]] extends ComposeTests[F] { def laws: CategoryLaws[F] diff --git a/laws/src/main/scala/cats/laws/discipline/ChoiceTests.scala b/laws/src/main/scala/cats/laws/discipline/ChoiceTests.scala index 4bc9960576..438105cac8 100644 --- a/laws/src/main/scala/cats/laws/discipline/ChoiceTests.scala +++ b/laws/src/main/scala/cats/laws/discipline/ChoiceTests.scala @@ -25,7 +25,7 @@ package discipline import cats.arrow.Choice import org.scalacheck.Arbitrary -import org.scalacheck.Prop._ +import org.scalacheck.Prop.* trait ChoiceTests[F[_, _]] extends CategoryTests[F] { def laws: ChoiceLaws[F] diff --git a/laws/src/main/scala/cats/laws/discipline/CoflatMapTests.scala b/laws/src/main/scala/cats/laws/discipline/CoflatMapTests.scala index 1f411e81c1..fd36360a2b 100644 --- a/laws/src/main/scala/cats/laws/discipline/CoflatMapTests.scala +++ b/laws/src/main/scala/cats/laws/discipline/CoflatMapTests.scala @@ -24,7 +24,7 @@ package laws package discipline import org.scalacheck.{Arbitrary, Cogen, Prop} -import Prop._ +import Prop.* import org.typelevel.discipline.Laws trait CoflatMapTests[F[_]] extends Laws with FunctorTests[F] { diff --git a/laws/src/main/scala/cats/laws/discipline/CommutativeApplyTests.scala b/laws/src/main/scala/cats/laws/discipline/CommutativeApplyTests.scala index 80e83823f7..f7b16c7a3a 100644 --- a/laws/src/main/scala/cats/laws/discipline/CommutativeApplyTests.scala +++ b/laws/src/main/scala/cats/laws/discipline/CommutativeApplyTests.scala @@ -25,7 +25,7 @@ package discipline import cats.laws.discipline.SemigroupalTests.Isomorphisms import org.scalacheck.{Arbitrary, Cogen, Prop} -import Prop._ +import Prop.* trait CommutativeApplyTests[F[_]] extends ApplyTests[F] { def laws: CommutativeApplyLaws[F] diff --git a/laws/src/main/scala/cats/laws/discipline/CommutativeArrowTests.scala b/laws/src/main/scala/cats/laws/discipline/CommutativeArrowTests.scala index 26a68386f4..3517195bfe 100644 --- a/laws/src/main/scala/cats/laws/discipline/CommutativeArrowTests.scala +++ b/laws/src/main/scala/cats/laws/discipline/CommutativeArrowTests.scala @@ -25,7 +25,7 @@ package discipline import cats.arrow.CommutativeArrow import org.scalacheck.{Arbitrary, Cogen, Prop} -import Prop._ +import Prop.* trait CommutativeArrowTests[F[_, _]] extends ArrowTests[F] { def laws: CommutativeArrowLaws[F] diff --git a/laws/src/main/scala/cats/laws/discipline/CommutativeFlatMapTests.scala b/laws/src/main/scala/cats/laws/discipline/CommutativeFlatMapTests.scala index f531804f88..ff98c803c6 100644 --- a/laws/src/main/scala/cats/laws/discipline/CommutativeFlatMapTests.scala +++ b/laws/src/main/scala/cats/laws/discipline/CommutativeFlatMapTests.scala @@ -25,7 +25,7 @@ package discipline import cats.laws.discipline.SemigroupalTests.Isomorphisms import org.scalacheck.{Arbitrary, Cogen, Prop} -import Prop._ +import Prop.* trait CommutativeFlatMapTests[F[_]] extends FlatMapTests[F] with CommutativeApplyTests[F] { def laws: CommutativeFlatMapLaws[F] diff --git a/laws/src/main/scala/cats/laws/discipline/ComonadTests.scala b/laws/src/main/scala/cats/laws/discipline/ComonadTests.scala index b07c01b2eb..e9a79332c3 100644 --- a/laws/src/main/scala/cats/laws/discipline/ComonadTests.scala +++ b/laws/src/main/scala/cats/laws/discipline/ComonadTests.scala @@ -24,7 +24,7 @@ package laws package discipline import org.scalacheck.{Arbitrary, Cogen, Prop} -import Prop._ +import Prop.* trait ComonadTests[F[_]] extends CoflatMapTests[F] { diff --git a/laws/src/main/scala/cats/laws/discipline/ComposeTests.scala b/laws/src/main/scala/cats/laws/discipline/ComposeTests.scala index ce7c46081f..7437558201 100644 --- a/laws/src/main/scala/cats/laws/discipline/ComposeTests.scala +++ b/laws/src/main/scala/cats/laws/discipline/ComposeTests.scala @@ -26,7 +26,7 @@ package discipline import cats.arrow.Compose import org.scalacheck.Arbitrary import org.scalacheck.Prop -import Prop._ +import Prop.* import org.typelevel.discipline.Laws trait ComposeTests[F[_, _]] extends Laws { diff --git a/laws/src/main/scala/cats/laws/discipline/ContravariantTests.scala b/laws/src/main/scala/cats/laws/discipline/ContravariantTests.scala index 0688dc5093..a7817cbbac 100644 --- a/laws/src/main/scala/cats/laws/discipline/ContravariantTests.scala +++ b/laws/src/main/scala/cats/laws/discipline/ContravariantTests.scala @@ -25,7 +25,7 @@ package discipline import cats.Contravariant import org.scalacheck.{Arbitrary, Cogen} -import org.scalacheck.Prop._ +import org.scalacheck.Prop.* trait ContravariantTests[F[_]] extends InvariantTests[F] { def laws: ContravariantLaws[F] diff --git a/laws/src/main/scala/cats/laws/discipline/DeferTests.scala b/laws/src/main/scala/cats/laws/discipline/DeferTests.scala index 9951ffa23f..f9a657602a 100644 --- a/laws/src/main/scala/cats/laws/discipline/DeferTests.scala +++ b/laws/src/main/scala/cats/laws/discipline/DeferTests.scala @@ -24,7 +24,7 @@ package laws package discipline import org.scalacheck.{Arbitrary, Prop} -import Prop._ +import Prop.* import org.typelevel.discipline.Laws trait DeferTests[F[_]] extends Laws { diff --git a/laws/src/main/scala/cats/laws/discipline/DistributiveTests.scala b/laws/src/main/scala/cats/laws/discipline/DistributiveTests.scala index 7e6b5560e7..6871d9554a 100644 --- a/laws/src/main/scala/cats/laws/discipline/DistributiveTests.scala +++ b/laws/src/main/scala/cats/laws/discipline/DistributiveTests.scala @@ -24,7 +24,7 @@ package laws package discipline import org.scalacheck.{Arbitrary, Cogen, Prop} -import Prop._ +import Prop.* trait DistributiveTests[F[_]] extends FunctorTests[F] { def laws: DistributiveLaws[F] diff --git a/laws/src/main/scala/cats/laws/discipline/Eq.scala b/laws/src/main/scala/cats/laws/discipline/Eq.scala index 471d82b127..6e7e0a1d60 100644 --- a/laws/src/main/scala/cats/laws/discipline/Eq.scala +++ b/laws/src/main/scala/cats/laws/discipline/Eq.scala @@ -24,12 +24,12 @@ package laws package discipline import cats.data.{AndThen, RepresentableStore, StoreT} -import cats.instances.boolean._ -import cats.instances.int._ -import cats.instances.string._ -import cats.kernel._ +import cats.instances.boolean.* +import cats.instances.int.* +import cats.instances.string.* +import cats.kernel.* import cats.platform.Platform -import cats.syntax.eq._ +import cats.syntax.eq.* import org.scalacheck.Arbitrary object eq { diff --git a/laws/src/main/scala/cats/laws/discipline/FlatMapTests.scala b/laws/src/main/scala/cats/laws/discipline/FlatMapTests.scala index c048b118c4..f722c213cf 100644 --- a/laws/src/main/scala/cats/laws/discipline/FlatMapTests.scala +++ b/laws/src/main/scala/cats/laws/discipline/FlatMapTests.scala @@ -23,11 +23,11 @@ package cats package laws package discipline -import cats.instances.eq._ +import cats.instances.eq.* import cats.laws.discipline.SemigroupalTests.Isomorphisms import org.scalacheck.{Arbitrary, Cogen, Prop} -import Prop._ +import Prop.* trait FlatMapTests[F[_]] extends ApplyTests[F] { def laws: FlatMapLaws[F] diff --git a/laws/src/main/scala/cats/laws/discipline/FoldableTests.scala b/laws/src/main/scala/cats/laws/discipline/FoldableTests.scala index 3027591b27..614a83a438 100644 --- a/laws/src/main/scala/cats/laws/discipline/FoldableTests.scala +++ b/laws/src/main/scala/cats/laws/discipline/FoldableTests.scala @@ -25,8 +25,8 @@ package discipline import cats.kernel.CommutativeMonoid import org.scalacheck.{Arbitrary, Cogen} -import org.scalacheck.Prop._ -import cats.instances.list._ +import org.scalacheck.Prop.* +import cats.instances.list.* import arbitrary.catsLawsArbitraryForPartialFunction trait FoldableTests[F[_]] extends UnorderedFoldableTests[F] { diff --git a/laws/src/main/scala/cats/laws/discipline/FunctorTests.scala b/laws/src/main/scala/cats/laws/discipline/FunctorTests.scala index 47eab16b27..ca24f63c60 100644 --- a/laws/src/main/scala/cats/laws/discipline/FunctorTests.scala +++ b/laws/src/main/scala/cats/laws/discipline/FunctorTests.scala @@ -24,7 +24,7 @@ package laws package discipline import org.scalacheck.{Arbitrary, Cogen, Prop} -import Prop._ +import Prop.* trait FunctorTests[F[_]] extends InvariantTests[F] { def laws: FunctorLaws[F] diff --git a/laws/src/main/scala/cats/laws/discipline/InjectKTests.scala b/laws/src/main/scala/cats/laws/discipline/InjectKTests.scala index 27046fbb0c..0a6737ff18 100644 --- a/laws/src/main/scala/cats/laws/discipline/InjectKTests.scala +++ b/laws/src/main/scala/cats/laws/discipline/InjectKTests.scala @@ -25,7 +25,7 @@ package discipline import org.scalacheck.Arbitrary import org.scalacheck.Prop -import Prop._ +import Prop.* import org.typelevel.discipline.Laws trait InjectKTests[F[_], G[_]] extends Laws { diff --git a/laws/src/main/scala/cats/laws/discipline/InjectTests.scala b/laws/src/main/scala/cats/laws/discipline/InjectTests.scala index 14427cfffd..617112f2cb 100644 --- a/laws/src/main/scala/cats/laws/discipline/InjectTests.scala +++ b/laws/src/main/scala/cats/laws/discipline/InjectTests.scala @@ -25,7 +25,7 @@ package discipline import org.scalacheck.Arbitrary import org.scalacheck.Prop -import Prop._ +import Prop.* import org.typelevel.discipline.Laws trait InjectTests[A, B] extends Laws { diff --git a/laws/src/main/scala/cats/laws/discipline/InvariantTests.scala b/laws/src/main/scala/cats/laws/discipline/InvariantTests.scala index 8634d0f1b7..6b9ed1c7f1 100644 --- a/laws/src/main/scala/cats/laws/discipline/InvariantTests.scala +++ b/laws/src/main/scala/cats/laws/discipline/InvariantTests.scala @@ -24,7 +24,7 @@ package laws package discipline import org.scalacheck.{Arbitrary, Cogen, Prop} -import Prop._ +import Prop.* import cats.Invariant import org.typelevel.discipline.Laws diff --git a/laws/src/main/scala/cats/laws/discipline/MiniInt.scala b/laws/src/main/scala/cats/laws/discipline/MiniInt.scala index af67cfa642..b323fa9c4e 100644 --- a/laws/src/main/scala/cats/laws/discipline/MiniInt.scala +++ b/laws/src/main/scala/cats/laws/discipline/MiniInt.scala @@ -24,7 +24,7 @@ package laws package discipline import cats.kernel.{BoundedSemilattice, CommutativeGroup, CommutativeMonoid} -import cats.instances.int._ +import cats.instances.int.* /** * Similar to `Int`, but with a much smaller domain. The exact range of [[MiniInt]] may be tuned from time to time, so @@ -34,7 +34,7 @@ import cats.instances.int._ * and multiplication are commutative and associative. */ final class MiniInt private (val intBits: Int) extends AnyVal with Serializable { - import MiniInt._ + import MiniInt.* def unary_- : MiniInt = this * negativeOne diff --git a/laws/src/main/scala/cats/laws/discipline/MonadTests.scala b/laws/src/main/scala/cats/laws/discipline/MonadTests.scala index 0bb727bd0d..68c3a3527d 100644 --- a/laws/src/main/scala/cats/laws/discipline/MonadTests.scala +++ b/laws/src/main/scala/cats/laws/discipline/MonadTests.scala @@ -26,7 +26,7 @@ package discipline import cats.laws.discipline.SemigroupalTests.Isomorphisms import cats.platform.Platform import org.scalacheck.{Arbitrary, Cogen, Prop} -import Prop._ +import Prop.* trait MonadTests[F[_]] extends ApplicativeTests[F] with FlatMapTests[F] { def laws: MonadLaws[F] diff --git a/laws/src/main/scala/cats/laws/discipline/MonoidKTests.scala b/laws/src/main/scala/cats/laws/discipline/MonoidKTests.scala index 17f2ca9be7..29f910ef36 100644 --- a/laws/src/main/scala/cats/laws/discipline/MonoidKTests.scala +++ b/laws/src/main/scala/cats/laws/discipline/MonoidKTests.scala @@ -23,7 +23,7 @@ package cats package laws package discipline -import org.scalacheck.Prop._ +import org.scalacheck.Prop.* import org.scalacheck.Arbitrary trait MonoidKTests[F[_]] extends SemigroupKTests[F] { diff --git a/laws/src/main/scala/cats/laws/discipline/NonEmptyAlternativeTests.scala b/laws/src/main/scala/cats/laws/discipline/NonEmptyAlternativeTests.scala index e72aab5fe0..c43f483436 100644 --- a/laws/src/main/scala/cats/laws/discipline/NonEmptyAlternativeTests.scala +++ b/laws/src/main/scala/cats/laws/discipline/NonEmptyAlternativeTests.scala @@ -25,7 +25,7 @@ package discipline import cats.laws.discipline.SemigroupalTests.Isomorphisms import org.scalacheck.{Arbitrary, Cogen, Prop} -import Prop._ +import Prop.* trait NonEmptyAlternativeTests[F[_]] extends ApplicativeTests[F] with SemigroupKTests[F] { def laws: NonEmptyAlternativeLaws[F] diff --git a/laws/src/main/scala/cats/laws/discipline/ProfunctorTests.scala b/laws/src/main/scala/cats/laws/discipline/ProfunctorTests.scala index 66fec28ce7..70116edec7 100644 --- a/laws/src/main/scala/cats/laws/discipline/ProfunctorTests.scala +++ b/laws/src/main/scala/cats/laws/discipline/ProfunctorTests.scala @@ -24,7 +24,7 @@ package laws package discipline import org.scalacheck.{Arbitrary, Cogen, Prop} -import Prop._ +import Prop.* import cats.arrow.Profunctor import org.typelevel.discipline.Laws diff --git a/laws/src/main/scala/cats/laws/discipline/ReducibleTests.scala b/laws/src/main/scala/cats/laws/discipline/ReducibleTests.scala index 2de4e20681..179ab683e5 100644 --- a/laws/src/main/scala/cats/laws/discipline/ReducibleTests.scala +++ b/laws/src/main/scala/cats/laws/discipline/ReducibleTests.scala @@ -23,8 +23,8 @@ package cats package laws package discipline -import cats.instances.option._ -import cats.instances.long._ +import cats.instances.option.* +import cats.instances.long.* import cats.kernel.CommutativeMonoid import org.scalacheck.{Arbitrary, Cogen} import org.scalacheck.Prop.forAll diff --git a/laws/src/main/scala/cats/laws/discipline/RepresentableTests.scala b/laws/src/main/scala/cats/laws/discipline/RepresentableTests.scala index 4e5441e256..0bb0710661 100644 --- a/laws/src/main/scala/cats/laws/discipline/RepresentableTests.scala +++ b/laws/src/main/scala/cats/laws/discipline/RepresentableTests.scala @@ -25,7 +25,7 @@ import cats.{Eq, Representable} import cats.laws.RepresentableLaws import org.scalacheck.Arbitrary import org.typelevel.discipline.Laws -import org.scalacheck.Prop._ +import org.scalacheck.Prop.* trait RepresentableTests[F[_], R] extends Laws { diff --git a/laws/src/main/scala/cats/laws/discipline/SemigroupKTests.scala b/laws/src/main/scala/cats/laws/discipline/SemigroupKTests.scala index f68bd2d426..8043f0f8cd 100644 --- a/laws/src/main/scala/cats/laws/discipline/SemigroupKTests.scala +++ b/laws/src/main/scala/cats/laws/discipline/SemigroupKTests.scala @@ -23,7 +23,7 @@ package cats package laws package discipline -import org.scalacheck.Prop._ +import org.scalacheck.Prop.* import org.scalacheck.Arbitrary import org.typelevel.discipline.Laws diff --git a/laws/src/main/scala/cats/laws/discipline/SemigroupalTests.scala b/laws/src/main/scala/cats/laws/discipline/SemigroupalTests.scala index 94400317de..6503eeb7b0 100644 --- a/laws/src/main/scala/cats/laws/discipline/SemigroupalTests.scala +++ b/laws/src/main/scala/cats/laws/discipline/SemigroupalTests.scala @@ -26,7 +26,7 @@ package discipline import cats.laws.discipline.SemigroupalTests.Isomorphisms import org.scalacheck.Arbitrary import org.scalacheck.Prop -import Prop._ +import Prop.* import org.typelevel.discipline.Laws trait SemigroupalTests[F[_]] extends Laws { @@ -60,7 +60,7 @@ object SemigroupalTests { } object Isomorphisms { - import cats.kernel.laws._ + import cats.kernel.laws.* implicit def invariant[F[_]](implicit F: Invariant[F]): Isomorphisms[F] = new Isomorphisms[F] { diff --git a/laws/src/main/scala/cats/laws/discipline/StrongTests.scala b/laws/src/main/scala/cats/laws/discipline/StrongTests.scala index 661845f556..40ec6a1a12 100644 --- a/laws/src/main/scala/cats/laws/discipline/StrongTests.scala +++ b/laws/src/main/scala/cats/laws/discipline/StrongTests.scala @@ -24,7 +24,7 @@ package laws package discipline import org.scalacheck.{Arbitrary, Cogen, Prop} -import Prop._ +import Prop.* import cats.arrow.Strong trait StrongTests[F[_, _]] extends ProfunctorTests[F] { diff --git a/laws/src/main/scala/cats/laws/discipline/TraverseFilterTests.scala b/laws/src/main/scala/cats/laws/discipline/TraverseFilterTests.scala index d24d3d81ba..d391ccb3a9 100644 --- a/laws/src/main/scala/cats/laws/discipline/TraverseFilterTests.scala +++ b/laws/src/main/scala/cats/laws/discipline/TraverseFilterTests.scala @@ -26,7 +26,7 @@ package discipline import cats.data.Nested import org.scalacheck.Prop.forAll import org.scalacheck.Arbitrary -import cats.instances.option._ +import cats.instances.option.* trait TraverseFilterTests[F[_]] extends FunctorFilterTests[F] { def laws: TraverseFilterLaws[F] diff --git a/laws/src/main/scala/cats/laws/discipline/TraverseTests.scala b/laws/src/main/scala/cats/laws/discipline/TraverseTests.scala index 5063d2dcac..8fe9c1fa54 100644 --- a/laws/src/main/scala/cats/laws/discipline/TraverseTests.scala +++ b/laws/src/main/scala/cats/laws/discipline/TraverseTests.scala @@ -23,9 +23,9 @@ package cats package laws package discipline -import cats.instances.option._ +import cats.instances.option.* import cats.kernel.CommutativeMonoid -import org.scalacheck.Prop._ +import org.scalacheck.Prop.* import org.scalacheck.{Arbitrary, Cogen, Prop} trait TraverseTests[F[_]] extends FunctorTests[F] with FoldableTests[F] with UnorderedTraverseTests[F] { diff --git a/laws/src/main/scala/cats/laws/discipline/UnorderedFoldableTests.scala b/laws/src/main/scala/cats/laws/discipline/UnorderedFoldableTests.scala index 29a4e737c9..2d6ee98da9 100644 --- a/laws/src/main/scala/cats/laws/discipline/UnorderedFoldableTests.scala +++ b/laws/src/main/scala/cats/laws/discipline/UnorderedFoldableTests.scala @@ -24,10 +24,10 @@ package laws package discipline import org.scalacheck.{Arbitrary, Cogen, Prop} -import Prop._ +import Prop.* import org.typelevel.discipline.Laws import cats.kernel.CommutativeMonoid -import cats.instances.boolean._ +import cats.instances.boolean.* trait UnorderedFoldableTests[F[_]] extends Laws { def laws: UnorderedFoldableLaws[F] diff --git a/laws/src/main/scala/cats/laws/discipline/UnorderedTraverseTests.scala b/laws/src/main/scala/cats/laws/discipline/UnorderedTraverseTests.scala index 3bfab160ef..70c1550d0e 100644 --- a/laws/src/main/scala/cats/laws/discipline/UnorderedTraverseTests.scala +++ b/laws/src/main/scala/cats/laws/discipline/UnorderedTraverseTests.scala @@ -24,7 +24,7 @@ package laws package discipline import org.scalacheck.{Arbitrary, Cogen, Prop} -import Prop._ +import Prop.* import cats.kernel.CommutativeMonoid trait UnorderedTraverseTests[F[_]] extends UnorderedFoldableTests[F] { diff --git a/laws/src/main/scala/cats/laws/discipline/arbitrary.scala b/laws/src/main/scala/cats/laws/discipline/arbitrary.scala index 4016d9ad95..06ef0d18eb 100644 --- a/laws/src/main/scala/cats/laws/discipline/arbitrary.scala +++ b/laws/src/main/scala/cats/laws/discipline/arbitrary.scala @@ -22,13 +22,13 @@ package cats package laws package discipline -import kernel.compat.scalaVersionSpecific._ +import kernel.compat.scalaVersionSpecific.* import cats.data.NonEmptyList.ZipNonEmptyList import cats.data.NonEmptyVector.ZipNonEmptyVector import scala.util.{Failure, Success, Try} import scala.collection.immutable.{Seq, SortedMap, SortedSet} -import cats.data._ +import cats.data.* import org.scalacheck.{Arbitrary, Cogen, Gen} import org.scalacheck.Arbitrary.{arbitrary => getArbitrary} diff --git a/laws/src/test/scala/cats/laws/discipline/MonadTestsTests.scala b/laws/src/test/scala/cats/laws/discipline/MonadTestsTests.scala index 3cce492863..824c230513 100644 --- a/laws/src/test/scala/cats/laws/discipline/MonadTestsTests.scala +++ b/laws/src/test/scala/cats/laws/discipline/MonadTestsTests.scala @@ -23,8 +23,8 @@ package cats package laws package discipline -import cats.instances.all._ -import cats.laws.discipline.arbitrary._ +import cats.instances.all.* +import cats.laws.discipline.arbitrary.* import munit.DisciplineSuite class MonadTestsTests extends DisciplineSuite { diff --git a/project/AlgebraBoilerplate.scala b/project/AlgebraBoilerplate.scala index 6f5b0528ec..4e90334e8e 100644 --- a/project/AlgebraBoilerplate.scala +++ b/project/AlgebraBoilerplate.scala @@ -1,4 +1,4 @@ -import sbt._ +import sbt.* /** * Generate a range of boilerplate classes that would be tedious to write and maintain by hand. @@ -10,7 +10,7 @@ import sbt._ * @author Kevin Wright */ object AlgebraBoilerplate { - import scala.StringContext._ + import scala.StringContext.* implicit class BlockHelper(val sc: StringContext) extends AnyVal { def block(args: Any*): String = { @@ -81,7 +81,7 @@ object AlgebraBoilerplate { def filename(root: File): File = root / "algebra" / "instances" / "TupleAlgebra.scala" def content(tv: TemplateVals): String = { - import tv._ + import tv.* def constraints(constraint: String) = synTypes.map(tpe => s"$tpe: $constraint[$tpe]").mkString(", ") diff --git a/project/Boilerplate.scala b/project/Boilerplate.scala index 277a967cd6..47a1b10fc8 100644 --- a/project/Boilerplate.scala +++ b/project/Boilerplate.scala @@ -1,4 +1,4 @@ -import sbt._ +import sbt.* import scala.annotation.tailrec @@ -12,7 +12,7 @@ import scala.annotation.tailrec * @author Kevin Wright */ object Boilerplate { - import scala.StringContext._ + import scala.StringContext.* implicit final class BlockHelper(private val sc: StringContext) extends AnyVal { def block(args: Any*): String = { @@ -141,7 +141,7 @@ object Boilerplate { def filename(root: File) = root / "cats" / "syntax" / "SemigroupalBuilder.scala" def content(tv: TemplateVals) = { - import tv._ + import tv.* val tpes = synTypes.map { tpe => s"F[$tpe]" @@ -210,7 +210,7 @@ object Boilerplate { def filename(root: File) = root / "cats" / "ApplyArityFunctions.scala" override def range = 3 to maxArity def content(tv: TemplateVals) = { - import tv._ + import tv.* val tpes = synTypes.map { tpe => s"F[$tpe]" @@ -283,7 +283,7 @@ object Boilerplate { def filename(root: File) = root / "cats" / "FlatMapArityFunctions.scala" override def range = 2 to maxArity def content(tv: TemplateVals) = { - import tv._ + import tv.* val tpes = synTypes.map { tpe => s"F[$tpe]" @@ -319,7 +319,7 @@ object Boilerplate { def filename(root: File) = root / "cats" / "ParallelArityFunctions.scala" override def range = 2 to maxArity def content(tv: TemplateVals) = { - import tv._ + import tv.* val tpes = synTypes.map { tpe => s"M[$tpe]" @@ -354,7 +354,7 @@ object Boilerplate { def filename(root: File) = root / "cats" / "ParallelArityFunctions2.scala" override def range = 2 to maxArity def content(tv: TemplateVals) = { - import tv._ + import tv.* val tpes = synTypes.map { tpe => s"M[$tpe]" @@ -386,7 +386,7 @@ object Boilerplate { def filename(root: File) = root / "cats" / "SemigroupalArityFunctions.scala" override def range = 2 to maxArity def content(tv: TemplateVals) = { - import tv._ + import tv.* val tpes = synTypes.map { tpe => s"F[$tpe]" @@ -451,7 +451,7 @@ object Boilerplate { def filename(root: File) = root / "cats" / "syntax" / "TupleParallelSyntax.scala" def content(tv: TemplateVals) = { - import tv._ + import tv.* val tpes = synTypes.map { tpe => s"M[$tpe]" @@ -502,7 +502,7 @@ object Boilerplate { def filename(root: File) = root / "cats" / "syntax" / "TupleSemigroupalSyntax.scala" def content(tv: TemplateVals) = { - import tv._ + import tv.* val tpes = synTypes.map { tpe => s"F[$tpe]" @@ -581,7 +581,7 @@ object Boilerplate { def filename(root: File) = root / "cats" / "FoldableNFunctions.scala" override def range = 2 to maxArity def content(tv: TemplateVals) = { - import tv._ + import tv.* val tupleTpe = Iterator.fill(arity)("A").mkString("(", ", ", ")") val tupleXN = Iterator.tabulate(arity)(i => s"x($i)").mkString("(", ", ", ")") @@ -629,7 +629,7 @@ object Boilerplate { override def range = 2 to maxArity def content(tv: TemplateVals) = { - import tv._ + import tv.* val function = s"Function$arity[${`A..N`}, T]" diff --git a/project/KernelBoiler.scala b/project/KernelBoiler.scala index c12e42483e..f0c28b69aa 100644 --- a/project/KernelBoiler.scala +++ b/project/KernelBoiler.scala @@ -1,4 +1,4 @@ -import sbt._ +import sbt.* /** * Generate a range of boilerplate classes that would be tedious to write and maintain by hand. @@ -10,7 +10,7 @@ import sbt._ * @author Kevin Wright */ object KernelBoiler { - import scala.StringContext._ + import scala.StringContext.* implicit final class BlockHelper(private val sc: StringContext) extends AnyVal { def block(args: Any*): String = { @@ -79,7 +79,7 @@ object KernelBoiler { } abstract class TemplatedBlock(tv: TemplateVals) { - import tv._ + import tv.* def constraints(constraint: String): String = synTypes.map(tpe => s"$tpe: $constraint[$tpe]").mkString(", ") @@ -138,7 +138,7 @@ object KernelBoiler { trait TupleInstances extends TupleInstances1 {""", tv => new TemplatedBlock(tv) { - import tv._ + import tv.* def content = block""" | implicit def catsKernelStdCommutativeGroupForTuple$arity[${`A..N`}]( @@ -161,7 +161,7 @@ object KernelBoiler { private[instances] trait TupleInstances1 extends TupleInstances2 {""", tv => new TemplatedBlock(tv) { - import tv._ + import tv.* def content = block""" | implicit def catsKernelStdSemilatticeForTuple$arity[${`A..N`}]( @@ -192,7 +192,7 @@ object KernelBoiler { private[instances] trait TupleInstances2 extends TupleInstances3 {""", tv => new TemplatedBlock(tv) { - import tv._ + import tv.* def content = block""" | implicit def catsKernelStdBandForTuple$arity[${`A..N`}]( @@ -215,7 +215,7 @@ object KernelBoiler { private[instances] trait TupleInstances3 {""", tv => new TemplatedBlock(tv) { - import tv._ + import tv.* def content = block""" | implicit def catsKernelStdSemigroupForTuple$arity[${`A..N`}]( @@ -233,7 +233,7 @@ object KernelBoiler { "private[kernel] trait TupleBandInstances extends TupleSemigroupInstances {", tv => new TemplatedBlock(tv) { - import tv._ + import tv.* def content = block""" | implicit def catsKernelBandForTuple$arity[${`A..N`}]( @@ -247,7 +247,7 @@ object KernelBoiler { "private[kernel] trait TupleBoundedSemilatticeInstances extends TupleGroupInstances {", tv => new TemplatedBlock(tv) { - import tv._ + import tv.* def content = block""" | implicit def catsKernelBoundedSemilatticeForTuple$arity[${`A..N`}]( @@ -262,7 +262,7 @@ object KernelBoiler { "private[kernel] trait TupleCommutativeGroupInstances extends TupleBoundedSemilatticeInstances {", tv => new TemplatedBlock(tv) { - import tv._ + import tv.* def content = block""" | implicit def catsKernelCommutativeGroupForTuple$arity[${`A..N`}]( @@ -278,7 +278,7 @@ object KernelBoiler { "private[kernel] trait TupleCommutativeMonoidInstances extends TupleSemilatticeInstances {", tv => new TemplatedBlock(tv) { - import tv._ + import tv.* def content = block""" | implicit def catsKernelCommutativeMonoidForTuple$arity[${`A..N`}]( @@ -293,7 +293,7 @@ object KernelBoiler { "private[kernel] trait TupleCommutativeSemigroupInstances extends TupleBandInstances {", tv => new TemplatedBlock(tv) { - import tv._ + import tv.* def content = block""" | implicit def catsKernelCommutativeSemigroupForTuple$arity[${`A..N`}]( @@ -307,7 +307,7 @@ object KernelBoiler { "private[kernel] trait TupleEqInstances {", tv => new TemplatedBlock(tv) { - import tv._ + import tv.* def content = block""" | implicit def catsKernelEqForTuple$arity[${`A..N`}]( @@ -321,7 +321,7 @@ object KernelBoiler { "private[kernel] trait TupleGroupInstances extends TupleCommutativeMonoidInstances {", tv => new TemplatedBlock(tv) { - import tv._ + import tv.* def content = block""" | implicit def catsKernelGroupForTuple$arity[${`A..N`}]( @@ -337,7 +337,7 @@ object KernelBoiler { "private[kernel] trait TupleHashInstances extends TupleEqInstances {", tv => new TemplatedBlock(tv) { - import tv._ + import tv.* def content = block""" | implicit def catsKernelHashForTuple$arity[${`A..N`}]( @@ -354,7 +354,7 @@ object KernelBoiler { "private[kernel] trait TupleMonoidInstances extends TupleCommutativeSemigroupInstances {", tv => new TemplatedBlock(tv) { - import tv._ + import tv.* def content = block""" | implicit def catsKernelMonoidForTuple$arity[${`A..N`}]( @@ -369,7 +369,7 @@ object KernelBoiler { "private[kernel] trait TupleOrderInstances extends TuplePartialOrderInstances {", tv => new TemplatedBlock(tv) { - import tv._ + import tv.* def content = block""" | implicit def catsKernelOrderForTuple$arity[${`A..N`}]( @@ -383,7 +383,7 @@ object KernelBoiler { "private[kernel] trait TuplePartialOrderInstances extends TupleHashInstances {", tv => new TemplatedBlock(tv) { - import tv._ + import tv.* def content = block""" | implicit def catsKernelPartialOrderForTuple$arity[${`A..N`}]( @@ -397,7 +397,7 @@ object KernelBoiler { "private[kernel] trait TupleSemigroupInstances {", tv => new TemplatedBlock(tv) { - import tv._ + import tv.* def content = block""" | implicit def catsKernelSemigroupForTuple$arity[${`A..N`}]( @@ -411,7 +411,7 @@ object KernelBoiler { "private[kernel] trait TupleSemilatticeInstances extends TupleMonoidInstances {", tv => new TemplatedBlock(tv) { - import tv._ + import tv.* def content = block""" | implicit def catsKernelSemilatticeForTuple$arity[${`A..N`}]( diff --git a/project/TupleBifunctorInstancesBoiler.scala b/project/TupleBifunctorInstancesBoiler.scala index b4e151ee98..4d35947444 100644 --- a/project/TupleBifunctorInstancesBoiler.scala +++ b/project/TupleBifunctorInstancesBoiler.scala @@ -1,6 +1,6 @@ -import sbt._ +import sbt.* -import Boilerplate._ +import Boilerplate.* import Boilerplate.{Template, TemplateVals} import sbt.File @@ -10,7 +10,7 @@ object GenTupleBifunctorInstances extends Template { root / "cats" / "instances" / "NTupleBifunctorInstances.scala" override def content(tv: TemplateVals): String = { - import tv._ + import tv.* block""" | diff --git a/project/TupleBitraverseInstancesBoiler.scala b/project/TupleBitraverseInstancesBoiler.scala index 7b13ab0aea..1f5fa37066 100644 --- a/project/TupleBitraverseInstancesBoiler.scala +++ b/project/TupleBitraverseInstancesBoiler.scala @@ -1,6 +1,6 @@ -import sbt._ +import sbt.* -import Boilerplate._ +import Boilerplate.* import Boilerplate.{Template, TemplateVals} import sbt.File @@ -10,7 +10,7 @@ object GenTupleBitraverseInstances extends Template { root / "cats" / "instances" / "NTupleBitraverseInstances.scala" override def content(tv: TemplateVals): String = { - import tv._ + import tv.* block""" | diff --git a/project/TupleMonadInstancesBoiler.scala b/project/TupleMonadInstancesBoiler.scala index 46f66d7440..57074b2c0f 100644 --- a/project/TupleMonadInstancesBoiler.scala +++ b/project/TupleMonadInstancesBoiler.scala @@ -1,6 +1,6 @@ -import sbt._ +import sbt.* -import Boilerplate._ +import Boilerplate.* import Boilerplate.{Template, TemplateVals} import sbt.File @@ -10,7 +10,7 @@ object GenTupleMonadInstances extends Template { root / "cats" / "instances" / "NTupleMonadInstances.scala" override def content(tv: TemplateVals): String = { - import tv._ + import tv.* val `b..(n - 1)` = for (n <- 0 until arity - 1) yield s"b$n" val `b:A..(n - 1):(N - 1)` = (for ((v, t) <- `b..(n - 1)`.zip(`A..(N - 1)`)) yield s"$v: $t").mkString(", ") diff --git a/project/TupleShowInstancesBoiler.scala b/project/TupleShowInstancesBoiler.scala index d590d26e3c..6d1539b946 100644 --- a/project/TupleShowInstancesBoiler.scala +++ b/project/TupleShowInstancesBoiler.scala @@ -1,6 +1,6 @@ -import sbt._ +import sbt.* -import Boilerplate._ +import Boilerplate.* import Boilerplate.{Template, TemplateVals} import sbt.File @@ -10,7 +10,7 @@ object GenTupleShowInstances extends Template { root / "cats" / "instances" / "NTupleShowInstances.scala" override def content(tv: TemplateVals): String = { - import tv._ + import tv.* val showMethod: String = synTypes.zipWithIndex.iterator diff --git a/project/TupleUnorderedFoldableInstancesBoiler.scala b/project/TupleUnorderedFoldableInstancesBoiler.scala index 224e277f73..364f9498a5 100644 --- a/project/TupleUnorderedFoldableInstancesBoiler.scala +++ b/project/TupleUnorderedFoldableInstancesBoiler.scala @@ -1,6 +1,6 @@ -import sbt._ +import sbt.* -import Boilerplate._ +import Boilerplate.* import Boilerplate.{Template, TemplateVals} import sbt.File @@ -10,7 +10,7 @@ object GenTupleUnorderedFoldableInstances extends Template { root / "cats" / "instances" / "NTupleUnorderedFoldableInstances.scala" override def content(tv: TemplateVals): String = { - import tv._ + import tv.* block""" | diff --git a/testkit/src/main/scala/cats/tests/Helpers.scala b/testkit/src/main/scala/cats/tests/Helpers.scala index e47f1e55c0..70a5c94f59 100644 --- a/testkit/src/main/scala/cats/tests/Helpers.scala +++ b/testkit/src/main/scala/cats/tests/Helpers.scala @@ -21,7 +21,7 @@ package cats.tests -import cats.kernel._ +import cats.kernel.* import org.scalacheck.{Arbitrary, Cogen} import org.scalacheck.Arbitrary.arbitrary diff --git a/tests/js/src/test/scala/cats/js/instances/future.scala b/tests/js/src/test/scala/cats/js/instances/future.scala index 4b11581c8c..6776e2944d 100644 --- a/tests/js/src/test/scala/cats/js/instances/future.scala +++ b/tests/js/src/test/scala/cats/js/instances/future.scala @@ -28,7 +28,7 @@ import scala.concurrent.{ExecutionContext => E} import scala.concurrent.duration.FiniteDuration import cats.instances.FutureCoflatMap -import cats.syntax.all._ +import cats.syntax.all.* object future extends FutureInstances0 diff --git a/tests/js/src/test/scala/cats/tests/FutureTests.scala b/tests/js/src/test/scala/cats/tests/FutureTests.scala index de67ca9e70..92bc583417 100644 --- a/tests/js/src/test/scala/cats/tests/FutureTests.scala +++ b/tests/js/src/test/scala/cats/tests/FutureTests.scala @@ -26,14 +26,14 @@ import cats.js.instances.Await import cats.js.instances.future.futureComonad import cats.kernel.Eq import cats.kernel.laws.discipline.{MonoidTests => MonoidLawTests, SemigroupTests => SemigroupLawTests} -import cats.laws.discipline._ -import cats.laws.discipline.arbitrary._ -import cats.syntax.either._ +import cats.laws.discipline.* +import cats.laws.discipline.arbitrary.* +import cats.syntax.either.* import cats.tests.{CatsSuite, ListWrapper} import org.scalacheck.{Arbitrary, Cogen} import org.scalacheck.Arbitrary.arbitrary import scala.concurrent.{ExecutionContextExecutor, Future} -import scala.concurrent.duration._ +import scala.concurrent.duration.* class FutureTests extends CatsSuite { // Replaces Scala.js's `JSExecutionContext.runNow`, which is removed in 1.0. diff --git a/tests/jvm-native/src/test/scala/cats/tests/FutureSuite.scala b/tests/jvm-native/src/test/scala/cats/tests/FutureSuite.scala index cf44c00110..cf4b1251a9 100644 --- a/tests/jvm-native/src/test/scala/cats/tests/FutureSuite.scala +++ b/tests/jvm-native/src/test/scala/cats/tests/FutureSuite.scala @@ -23,15 +23,15 @@ package cats.jvm.tests import cats.kernel.{Eq, Semigroup} import cats.kernel.laws.discipline.{MonoidTests => MonoidLawTests, SemigroupTests => SemigroupLawTests} -import cats.laws.discipline._ -import cats.laws.discipline.arbitrary._ -import cats.syntax.either._ +import cats.laws.discipline.* +import cats.laws.discipline.arbitrary.* +import cats.syntax.either.* import cats.tests.{CatsSuite, ListWrapper} import org.scalacheck.{Arbitrary, Cogen} import org.scalacheck.Arbitrary.arbitrary import org.scalacheck.rng.Seed import scala.concurrent.{Await, Future} -import scala.concurrent.duration._ +import scala.concurrent.duration.* import scala.concurrent.ExecutionContext.Implicits.global class FutureSuite extends CatsSuite { diff --git a/tests/shared/src/test/scala-2.12/cats/tests/NonEmptyStreamSuite.scala b/tests/shared/src/test/scala-2.12/cats/tests/NonEmptyStreamSuite.scala index cece2a83dd..8a19063140 100644 --- a/tests/shared/src/test/scala-2.12/cats/tests/NonEmptyStreamSuite.scala +++ b/tests/shared/src/test/scala-2.12/cats/tests/NonEmptyStreamSuite.scala @@ -26,14 +26,14 @@ import cats.data.{NonEmptyStream, OneAnd} import cats.kernel.Semigroup import cats.kernel.instances.order.catsKernelOrderingForOrder import cats.kernel.laws.discipline.{EqTests, SemigroupTests} -import cats.laws.discipline._ +import cats.laws.discipline.* import cats.laws.discipline.SemigroupalTests.Isomorphisms -import cats.laws.discipline.arbitrary._ -import cats.syntax.foldable._ -import cats.syntax.reducible._ -import cats.syntax.show._ -import cats.syntax.eq._ -import org.scalacheck.Prop._ +import cats.laws.discipline.arbitrary.* +import cats.syntax.foldable.* +import cats.syntax.reducible.* +import cats.syntax.show.* +import cats.syntax.eq.* +import org.scalacheck.Prop.* import org.scalacheck.Test.Parameters class NonEmptyStreamSuite extends CatsSuite { diff --git a/tests/shared/src/test/scala-2.12/cats/tests/ScalaVersionSpecific.scala b/tests/shared/src/test/scala-2.12/cats/tests/ScalaVersionSpecific.scala index fa4e29a511..9000c5c4e0 100644 --- a/tests/shared/src/test/scala-2.12/cats/tests/ScalaVersionSpecific.scala +++ b/tests/shared/src/test/scala-2.12/cats/tests/ScalaVersionSpecific.scala @@ -23,8 +23,8 @@ package cats.tests import cats.kernel.{Eq, Order} import cats.laws.discipline.{ExhaustiveCheck, MiniInt} -import cats.laws.discipline.MiniInt._ -import cats.laws.discipline.eq._ +import cats.laws.discipline.MiniInt.* +import cats.laws.discipline.eq.* trait ScalaVersionSpecificFoldableSuite trait ScalaVersionSpecificParallelSuite diff --git a/tests/shared/src/test/scala-2.13+/cats/tests/ArraySeqSuite.scala b/tests/shared/src/test/scala-2.13+/cats/tests/ArraySeqSuite.scala index 2d1b3296de..88dc9b2814 100644 --- a/tests/shared/src/test/scala-2.13+/cats/tests/ArraySeqSuite.scala +++ b/tests/shared/src/test/scala-2.13+/cats/tests/ArraySeqSuite.scala @@ -33,11 +33,11 @@ import cats.laws.discipline.{ TraverseFilterTests, TraverseTests } -import cats.laws.discipline.arbitrary._ -import cats.syntax.show._ -import cats.syntax.eq._ +import cats.laws.discipline.arbitrary.* +import cats.syntax.show.* +import cats.syntax.eq.* import scala.collection.immutable.ArraySeq -import org.scalacheck.Prop._ +import org.scalacheck.Prop.* class ArraySeqSuite extends CatsSuite { checkAll("ArraySeq[Int]", MonoidTests[ArraySeq[Int]].monoid) diff --git a/tests/shared/src/test/scala-2.13+/cats/tests/LazyListSuite.scala b/tests/shared/src/test/scala-2.13+/cats/tests/LazyListSuite.scala index 6f33e857eb..8664153e21 100644 --- a/tests/shared/src/test/scala-2.13+/cats/tests/LazyListSuite.scala +++ b/tests/shared/src/test/scala-2.13+/cats/tests/LazyListSuite.scala @@ -35,11 +35,11 @@ import cats.laws.discipline.{ TraverseFilterTests, TraverseTests } -import cats.laws.discipline.arbitrary._ -import cats.syntax.show._ -import cats.syntax.eq._ -import cats.syntax.foldable._ -import org.scalacheck.Prop._ +import cats.laws.discipline.arbitrary.* +import cats.syntax.show.* +import cats.syntax.eq.* +import cats.syntax.foldable.* +import org.scalacheck.Prop.* import scala.util.control.TailCalls @@ -108,8 +108,8 @@ class LazyListSuite extends CatsSuite { final class LazyListInstancesSuite extends munit.FunSuite { test("parallel instance in cats.instances.lazyList") { - import cats.instances.lazyList._ - import cats.syntax.parallel._ + import cats.instances.lazyList.* + import cats.syntax.parallel.* (LazyList(1, 2, 3), LazyList("A", "B", "C")).parTupled } diff --git a/tests/shared/src/test/scala-2.13+/cats/tests/NonEmptyLazyListSuite.scala b/tests/shared/src/test/scala-2.13+/cats/tests/NonEmptyLazyListSuite.scala index 6043bb870e..20bad8a9b7 100644 --- a/tests/shared/src/test/scala-2.13+/cats/tests/NonEmptyLazyListSuite.scala +++ b/tests/shared/src/test/scala-2.13+/cats/tests/NonEmptyLazyListSuite.scala @@ -21,7 +21,7 @@ package cats.tests -import cats._ +import cats.* import cats.data.NonEmptyLazyList import cats.data.NonEmptyLazyListOps import cats.data.NonEmptyVector @@ -31,12 +31,12 @@ import cats.kernel.laws.discipline.OrderTests import cats.kernel.laws.discipline.PartialOrderTests import cats.kernel.laws.discipline.SemigroupTests import cats.kernel.laws.discipline.SerializableTests -import cats.laws.discipline._ -import cats.laws.discipline.arbitrary._ -import cats.syntax.either._ -import cats.syntax.eq._ -import cats.syntax.foldable._ -import org.scalacheck.Prop._ +import cats.laws.discipline.* +import cats.laws.discipline.arbitrary.* +import cats.syntax.either.* +import cats.syntax.eq.* +import cats.syntax.foldable.* +import org.scalacheck.Prop.* class NonEmptyLazyListSuite extends NonEmptyCollectionSuite[LazyList, NonEmptyLazyList, NonEmptyLazyListOps] { protected def toList[A](value: NonEmptyLazyList[A]): List[A] = value.toList diff --git a/tests/shared/src/test/scala-2.13+/cats/tests/ScalaVersionSpecific.scala b/tests/shared/src/test/scala-2.13+/cats/tests/ScalaVersionSpecific.scala index 1efbd376a0..de58f3a1cf 100644 --- a/tests/shared/src/test/scala-2.13+/cats/tests/ScalaVersionSpecific.scala +++ b/tests/shared/src/test/scala-2.13+/cats/tests/ScalaVersionSpecific.scala @@ -21,16 +21,16 @@ package cats.tests -import cats._ +import cats.* import cats.data.NonEmptyLazyList import cats.laws.discipline.ExhaustiveCheck import cats.laws.discipline.MiniInt import cats.laws.discipline.NonEmptyParallelTests import cats.laws.discipline.ParallelTests -import cats.laws.discipline.arbitrary._ -import cats.laws.discipline.eq._ -import cats.syntax.all._ -import org.scalacheck.Prop._ +import cats.laws.discipline.arbitrary.* +import cats.laws.discipline.eq.* +import cats.syntax.all.* +import org.scalacheck.Prop.* trait ScalaVersionSpecificFoldableSuite { self: FoldableSuiteAdditional => test("Foldable[LazyList] monadic folds stack safety")(checkMonadicFoldsStackSafety(_.to(LazyList))) diff --git a/tests/shared/src/test/scala-2/cats/tests/FunctionKLiftSuite.scala b/tests/shared/src/test/scala-2/cats/tests/FunctionKLiftSuite.scala index 04257a3474..8d14276293 100644 --- a/tests/shared/src/test/scala-2/cats/tests/FunctionKLiftSuite.scala +++ b/tests/shared/src/test/scala-2/cats/tests/FunctionKLiftSuite.scala @@ -24,9 +24,9 @@ package cats.tests import cats.Applicative import cats.data.NonEmptyList import cats.arrow.FunctionK -import cats.syntax.all._ -import org.scalacheck.Prop._ -import cats.laws.discipline.arbitrary._ +import cats.syntax.all.* +import org.scalacheck.Prop.* +import cats.laws.discipline.arbitrary.* class FunctionKLiftSuite extends CatsSuite { type OptionOfNel[+A] = Option[NonEmptyList[A]] diff --git a/tests/shared/src/test/scala-3/cats/tests/FunctionKLiftSuite.scala b/tests/shared/src/test/scala-3/cats/tests/FunctionKLiftSuite.scala index da70f8fc87..ccbbb01461 100644 --- a/tests/shared/src/test/scala-3/cats/tests/FunctionKLiftSuite.scala +++ b/tests/shared/src/test/scala-3/cats/tests/FunctionKLiftSuite.scala @@ -22,9 +22,9 @@ package cats.tests import cats.arrow.FunctionK -import cats.syntax.all._ -import org.scalacheck.Prop._ -import cats.laws.discipline.arbitrary._ +import cats.syntax.all.* +import org.scalacheck.Prop.* +import cats.laws.discipline.arbitrary.* class FunctionKLiftSuite extends CatsSuite { diff --git a/tests/shared/src/test/scala/cats/tests/AlgebraInvariantSuite.scala b/tests/shared/src/test/scala/cats/tests/AlgebraInvariantSuite.scala index ac6753adef..53b77e6cf2 100644 --- a/tests/shared/src/test/scala/cats/tests/AlgebraInvariantSuite.scala +++ b/tests/shared/src/test/scala/cats/tests/AlgebraInvariantSuite.scala @@ -22,8 +22,8 @@ package cats.tests import cats.{CommutativeApplicative, CommutativeApply, Invariant, InvariantMonoidal} -import cats.kernel._ -import cats.kernel.laws.discipline.{GroupTests, MonoidTests, SemigroupTests, _} +import cats.kernel.* +import cats.kernel.laws.discipline.{GroupTests, MonoidTests, SemigroupTests, *} import cats.laws.discipline.{ ExhaustiveCheck, InvariantMonoidalTests, @@ -32,11 +32,11 @@ import cats.laws.discipline.{ MiniInt, SerializableTests } -import cats.laws.discipline.MiniInt._ -import cats.laws.discipline.eq._ -import cats.laws.discipline.arbitrary._ -import cats.syntax.invariant._ -import cats.syntax.order._ +import cats.laws.discipline.MiniInt.* +import cats.laws.discipline.eq.* +import cats.laws.discipline.arbitrary.* +import cats.syntax.invariant.* +import cats.syntax.order.* import org.scalacheck.{Arbitrary, Gen} class AlgebraInvariantSuite extends CatsSuite with ScalaVersionSpecificAlgebraInvariantSuite { diff --git a/tests/shared/src/test/scala/cats/tests/AlternativeSuite.scala b/tests/shared/src/test/scala/cats/tests/AlternativeSuite.scala index ec3858045b..3a4264fdd9 100644 --- a/tests/shared/src/test/scala/cats/tests/AlternativeSuite.scala +++ b/tests/shared/src/test/scala/cats/tests/AlternativeSuite.scala @@ -24,8 +24,8 @@ package cats.tests import cats.Alternative import cats.FlatMap import cats.laws.discipline.AlternativeTests -import cats.syntax.eq._ -import org.scalacheck.Prop._ +import cats.syntax.eq.* +import org.scalacheck.Prop.* class AlternativeSuite extends CatsSuite { diff --git a/tests/shared/src/test/scala/cats/tests/AndThenSuite.scala b/tests/shared/src/test/scala/cats/tests/AndThenSuite.scala index e833e69c58..9086bffc16 100644 --- a/tests/shared/src/test/scala/cats/tests/AndThenSuite.scala +++ b/tests/shared/src/test/scala/cats/tests/AndThenSuite.scala @@ -25,13 +25,13 @@ import cats.{Contravariant, ContravariantMonoidal, Monad, Semigroupal} import cats.arrow.{ArrowChoice, Choice, CommutativeArrow} import cats.data.AndThen import cats.kernel.laws.discipline.SerializableTests -import cats.laws.discipline._ -import cats.laws.discipline.arbitrary._ -import cats.laws.discipline.eq._ +import cats.laws.discipline.* +import cats.laws.discipline.arbitrary.* +import cats.laws.discipline.eq.* import cats.platform.Platform import munit.ScalaCheckSuite import org.scalacheck.{Arbitrary, Cogen, Gen} -import org.scalacheck.Prop._ +import org.scalacheck.Prop.* class AndThenSuite extends CatsSuite with ScalaCheckSuite { checkAll("AndThen[MiniInt, Int]", SemigroupalTests[AndThen[MiniInt, *]].semigroupal[Int, Int, Int]) diff --git a/tests/shared/src/test/scala/cats/tests/ApplicativeErrorSuite.scala b/tests/shared/src/test/scala/cats/tests/ApplicativeErrorSuite.scala index 631d72b685..6b932f28a7 100644 --- a/tests/shared/src/test/scala/cats/tests/ApplicativeErrorSuite.scala +++ b/tests/shared/src/test/scala/cats/tests/ApplicativeErrorSuite.scala @@ -24,10 +24,10 @@ package cats.tests import cats.ApplicativeError import cats.data.EitherT import cats.kernel.Eq -import cats.syntax.applicativeError._ -import cats.syntax.either._ -import cats.syntax.option._ -import cats.syntax.eq._ +import cats.syntax.applicativeError.* +import cats.syntax.either.* +import cats.syntax.option.* +import cats.syntax.eq.* class ApplicativeErrorSuite extends CatsSuite { val failed: Option[Int] = diff --git a/tests/shared/src/test/scala/cats/tests/ApplicativeSuite.scala b/tests/shared/src/test/scala/cats/tests/ApplicativeSuite.scala index 9af965b1f3..dd140b1f67 100644 --- a/tests/shared/src/test/scala/cats/tests/ApplicativeSuite.scala +++ b/tests/shared/src/test/scala/cats/tests/ApplicativeSuite.scala @@ -24,13 +24,13 @@ package cats.tests import cats.data.{Const, State, Validated} import cats.kernel.Monoid import cats.kernel.laws.discipline.{MonoidTests, SemigroupTests} -import cats.laws.discipline.arbitrary._ +import cats.laws.discipline.arbitrary.* import cats.laws.discipline.{AlignTests, CoflatMapTests} -import cats.syntax.applicative._ -import cats.syntax.eq._ -import cats.syntax.functor._ +import cats.syntax.applicative.* +import cats.syntax.eq.* +import cats.syntax.functor.* import cats.{Align, Applicative, Apply, CoflatMap} -import org.scalacheck.Prop._ +import org.scalacheck.Prop.* class ApplicativeSuite extends CatsSuite { diff --git a/tests/shared/src/test/scala/cats/tests/AsSuite.scala b/tests/shared/src/test/scala/cats/tests/AsSuite.scala index 559e2f9745..97067baf84 100644 --- a/tests/shared/src/test/scala/cats/tests/AsSuite.scala +++ b/tests/shared/src/test/scala/cats/tests/AsSuite.scala @@ -27,7 +27,7 @@ import org.scalacheck.{Arbitrary, Gen} import cats.arrow.Category class AsSuite extends CatsSuite { - import cats.evidence._ + import cats.evidence.* def toMap[A, B, X](fa: List[X])(implicit ev: X <~< (A, B)): Map[A, B] = { type RequiredFunc = (Map[A, B], X) => Map[A, B] diff --git a/tests/shared/src/test/scala/cats/tests/BifoldableSuite.scala b/tests/shared/src/test/scala/cats/tests/BifoldableSuite.scala index f5821e1cde..d20d832e25 100644 --- a/tests/shared/src/test/scala/cats/tests/BifoldableSuite.scala +++ b/tests/shared/src/test/scala/cats/tests/BifoldableSuite.scala @@ -23,8 +23,8 @@ package cats.tests import cats.Bifoldable import cats.laws.discipline.{BifoldableTests, SerializableTests} -import cats.syntax.either._ -import cats.syntax.eq._ +import cats.syntax.either.* +import cats.syntax.eq.* class BifoldableSuite extends CatsSuite { type EitherEither[A, B] = Either[Either[A, B], Either[A, B]] diff --git a/tests/shared/src/test/scala/cats/tests/BinCodecInvariantMonoidalSuite.scala b/tests/shared/src/test/scala/cats/tests/BinCodecInvariantMonoidalSuite.scala index 2e885cef65..76bce46095 100644 --- a/tests/shared/src/test/scala/cats/tests/BinCodecInvariantMonoidalSuite.scala +++ b/tests/shared/src/test/scala/cats/tests/BinCodecInvariantMonoidalSuite.scala @@ -23,12 +23,12 @@ package cats.tests import cats.{InvariantMonoidal, InvariantSemigroupal} import cats.kernel.{Eq, Monoid, Semigroup} -import cats.kernel.compat.scalaVersionSpecific._ +import cats.kernel.compat.scalaVersionSpecific.* import cats.kernel.laws.discipline.{MonoidTests, SemigroupTests} -import cats.laws.discipline.eq._ -import cats.laws.discipline.arbitrary._ +import cats.laws.discipline.eq.* +import cats.laws.discipline.arbitrary.* import cats.laws.discipline.{ExhaustiveCheck, InvariantMonoidalTests, MiniInt, SerializableTests} -import cats.syntax.all._ +import cats.syntax.all.* import org.scalacheck.{Arbitrary, Gen} @suppressUnusedImportWarningForScalaVersionSpecific @@ -184,7 +184,7 @@ object BinCodecInvariantMonoidalSuite { class BinCodecInvariantMonoidalSuite extends CatsSuite { // Everything is defined in a companion object to be serializable. - import BinCodecInvariantMonoidalSuite._ + import BinCodecInvariantMonoidalSuite.* checkAll("InvariantMonoidal[BinCodec]", InvariantMonoidalTests[BinCodec].invariantMonoidal[MiniInt, MiniInt, MiniInt]) checkAll("InvariantMonoidal[BinCodec]", SerializableTests.serializable(InvariantMonoidal[BinCodec])) diff --git a/tests/shared/src/test/scala/cats/tests/BinestedSuite.scala b/tests/shared/src/test/scala/cats/tests/BinestedSuite.scala index f6d2825ef4..1b9a234360 100644 --- a/tests/shared/src/test/scala/cats/tests/BinestedSuite.scala +++ b/tests/shared/src/test/scala/cats/tests/BinestedSuite.scala @@ -25,13 +25,13 @@ import cats.{Bifoldable, Bifunctor, Bitraverse, Foldable, Functor, Traverse} import cats.arrow.Profunctor import cats.data.Binested import cats.kernel.Eq -import cats.laws.discipline._ -import cats.laws.discipline.arbitrary._ -import cats.laws.discipline.eq._ -import cats.syntax.bifunctor._ -import cats.syntax.binested._ -import cats.syntax.eq._ -import org.scalacheck.Prop._ +import cats.laws.discipline.* +import cats.laws.discipline.arbitrary.* +import cats.laws.discipline.eq.* +import cats.syntax.bifunctor.* +import cats.syntax.binested.* +import cats.syntax.eq.* +import org.scalacheck.Prop.* import org.scalacheck.Test.Parameters class BinestedSuite extends CatsSuite { diff --git a/tests/shared/src/test/scala/cats/tests/BitSetSuite.scala b/tests/shared/src/test/scala/cats/tests/BitSetSuite.scala index f3989a0566..959574fae4 100644 --- a/tests/shared/src/test/scala/cats/tests/BitSetSuite.scala +++ b/tests/shared/src/test/scala/cats/tests/BitSetSuite.scala @@ -21,12 +21,12 @@ package cats.tests -import cats.syntax.show._ +import cats.syntax.show.* import org.scalacheck.Arbitrary import org.scalacheck.Arbitrary.arbitrary import scala.collection.immutable.BitSet -import cats.syntax.eq._ -import org.scalacheck.Prop._ +import cats.syntax.eq.* +import org.scalacheck.Prop.* class BitSetSuite extends CatsSuite { implicit val arbitraryBitSet: Arbitrary[BitSet] = diff --git a/tests/shared/src/test/scala/cats/tests/BoundedEnumerableSuite.scala b/tests/shared/src/test/scala/cats/tests/BoundedEnumerableSuite.scala index ab3ecf0b92..34fea2b9bf 100644 --- a/tests/shared/src/test/scala/cats/tests/BoundedEnumerableSuite.scala +++ b/tests/shared/src/test/scala/cats/tests/BoundedEnumerableSuite.scala @@ -22,7 +22,7 @@ package cats.tests import cats.kernel.BoundedEnumerable -import cats.syntax.eq._ +import cats.syntax.eq.* class BoundedEnumerableSuite extends CatsSuite { diff --git a/tests/shared/src/test/scala/cats/tests/ChainSuite.scala b/tests/shared/src/test/scala/cats/tests/ChainSuite.scala index 4a920ad4c4..b00e8fb393 100644 --- a/tests/shared/src/test/scala/cats/tests/ChainSuite.scala +++ b/tests/shared/src/test/scala/cats/tests/ChainSuite.scala @@ -30,14 +30,14 @@ import cats.kernel.laws.discipline.HashTests import cats.kernel.laws.discipline.MonoidTests import cats.kernel.laws.discipline.OrderTests import cats.kernel.laws.discipline.PartialOrderTests -import cats.laws.discipline._ -import cats.laws.discipline.arbitrary._ -import cats.syntax.eq._ -import cats.syntax.foldable._ -import cats.syntax.semigroup._ +import cats.laws.discipline.* +import cats.laws.discipline.arbitrary.* +import cats.syntax.eq.* +import cats.syntax.foldable.* +import cats.syntax.semigroup.* import org.scalacheck.Arbitrary import org.scalacheck.Gen -import org.scalacheck.Prop._ +import org.scalacheck.Prop.* class ChainSuite extends CatsSuite { checkAll("Chain[Int]", AlternativeTests[Chain].alternative[Int, Int, Int]) diff --git a/tests/shared/src/test/scala/cats/tests/CokleisliSuite.scala b/tests/shared/src/test/scala/cats/tests/CokleisliSuite.scala index 5d29a740f9..a2134da0e0 100644 --- a/tests/shared/src/test/scala/cats/tests/CokleisliSuite.scala +++ b/tests/shared/src/test/scala/cats/tests/CokleisliSuite.scala @@ -22,15 +22,15 @@ package cats.tests import cats.{Contravariant, Id, Monad, MonoidK, SemigroupK, Semigroupal} -import cats.arrow._ +import cats.arrow.* import cats.data.{Cokleisli, NonEmptyList} import cats.kernel.Eq -import cats.laws.discipline._ -import cats.laws.discipline.arbitrary._ -import cats.laws.discipline.eq._ +import cats.laws.discipline.* +import cats.laws.discipline.arbitrary.* +import cats.laws.discipline.eq.* import cats.laws.discipline.SemigroupalTests.Isomorphisms -import cats.syntax.eq._ -import org.scalacheck.Prop._ +import cats.syntax.eq.* +import org.scalacheck.Prop.* import org.scalacheck.Test.Parameters class CokleisliSuite extends SlowCatsSuite { diff --git a/tests/shared/src/test/scala/cats/tests/ComposeSuite.scala b/tests/shared/src/test/scala/cats/tests/ComposeSuite.scala index 4b19f9516f..cbb342bc85 100644 --- a/tests/shared/src/test/scala/cats/tests/ComposeSuite.scala +++ b/tests/shared/src/test/scala/cats/tests/ComposeSuite.scala @@ -26,8 +26,8 @@ import cats.arrow.Compose import cats.kernel.laws.discipline.SemigroupTests import cats.laws.discipline.{MiniInt, SemigroupKTests, SerializableTests} import cats.laws.discipline.eq.catsLawsEqForFn1Exhaustive -import cats.laws.discipline.arbitrary._ -import cats.syntax.compose._ +import cats.laws.discipline.arbitrary.* +import cats.syntax.compose.* class ComposeSuite extends CatsSuite { val functionCompose = Compose[Function1] diff --git a/tests/shared/src/test/scala/cats/tests/ConstSuite.scala b/tests/shared/src/test/scala/cats/tests/ConstSuite.scala index 62550af631..ef36794cbd 100644 --- a/tests/shared/src/test/scala/cats/tests/ConstSuite.scala +++ b/tests/shared/src/test/scala/cats/tests/ConstSuite.scala @@ -21,7 +21,7 @@ package cats.tests -import cats._ +import cats.* import cats.data.{Const, NonEmptyList} import cats.kernel.Semigroup import cats.kernel.laws.discipline.{ @@ -35,12 +35,12 @@ import cats.kernel.laws.discipline.{ UpperBoundedTests } import cats.laws.discipline.SemigroupalTests.Isomorphisms -import cats.laws.discipline._ -import cats.laws.discipline.arbitrary._ -import cats.syntax.eq._ -import cats.syntax.show._ +import cats.laws.discipline.* +import cats.laws.discipline.arbitrary.* +import cats.syntax.eq.* +import cats.syntax.show.* import cats.tests.Helpers.{CMono, CSemi, Semi} -import org.scalacheck.Prop._ +import org.scalacheck.Prop.* class ConstSuite extends CatsSuite { diff --git a/tests/shared/src/test/scala/cats/tests/ContTSuite.scala b/tests/shared/src/test/scala/cats/tests/ContTSuite.scala index 3299470607..b6d6d7f30a 100644 --- a/tests/shared/src/test/scala/cats/tests/ContTSuite.scala +++ b/tests/shared/src/test/scala/cats/tests/ContTSuite.scala @@ -26,11 +26,11 @@ import java.util.concurrent.atomic.AtomicInteger import cats.Eval import cats.data.ContT import cats.kernel.Eq -import cats.laws.discipline._ -import cats.laws.discipline.arbitrary._ +import cats.laws.discipline.* +import cats.laws.discipline.arbitrary.* import org.scalacheck.{Arbitrary, Gen} -import cats.syntax.all._ -import org.scalacheck.Prop._ +import cats.syntax.all.* +import org.scalacheck.Prop.* class ContTSuite extends CatsSuite { diff --git a/tests/shared/src/test/scala/cats/tests/ContravariantSuite.scala b/tests/shared/src/test/scala/cats/tests/ContravariantSuite.scala index cb50ae2960..9fc8c7f2e2 100644 --- a/tests/shared/src/test/scala/cats/tests/ContravariantSuite.scala +++ b/tests/shared/src/test/scala/cats/tests/ContravariantSuite.scala @@ -26,10 +26,10 @@ import cats.data.Const import cats.kernel.{Eq, Monoid, Semigroup} import cats.kernel.laws.discipline.{MonoidTests, SemigroupTests} import cats.laws.discipline.{ContravariantMonoidalTests, ExhaustiveCheck, MiniInt} -import cats.laws.discipline.arbitrary._ -import cats.laws.discipline.eq._ +import cats.laws.discipline.arbitrary.* +import cats.laws.discipline.eq.* import org.scalacheck.{Arbitrary, Cogen} -import org.scalacheck.Prop._ +import org.scalacheck.Prop.* class ContravariantSuite extends CatsSuite { diff --git a/tests/shared/src/test/scala/cats/tests/DurationSuite.scala b/tests/shared/src/test/scala/cats/tests/DurationSuite.scala index 1f50bb20d5..26e1f8bcad 100644 --- a/tests/shared/src/test/scala/cats/tests/DurationSuite.scala +++ b/tests/shared/src/test/scala/cats/tests/DurationSuite.scala @@ -24,7 +24,7 @@ package cats.tests import cats.Show import cats.laws.discipline.SerializableTests import scala.concurrent.duration.{Duration, DurationInt} -import cats.syntax.eq._ +import cats.syntax.eq.* class DurationSuite extends CatsSuite { checkAll("Show[Duration]", SerializableTests.serializable(Show[Duration])) diff --git a/tests/shared/src/test/scala/cats/tests/EitherKSuite.scala b/tests/shared/src/test/scala/cats/tests/EitherKSuite.scala index 766a5950c7..5c351a596a 100644 --- a/tests/shared/src/test/scala/cats/tests/EitherKSuite.scala +++ b/tests/shared/src/test/scala/cats/tests/EitherKSuite.scala @@ -21,14 +21,14 @@ package cats.tests -import cats._ +import cats.* import cats.data.EitherK import cats.kernel.laws.discipline.EqTests -import cats.laws.discipline._ -import cats.laws.discipline.arbitrary._ -import cats.laws.discipline.eq._ -import cats.syntax.eq._ -import org.scalacheck.Prop._ +import cats.laws.discipline.* +import cats.laws.discipline.arbitrary.* +import cats.laws.discipline.eq.* +import cats.syntax.eq.* +import org.scalacheck.Prop.* class EitherKSuite extends CatsSuite { diff --git a/tests/shared/src/test/scala/cats/tests/EitherSuite.scala b/tests/shared/src/test/scala/cats/tests/EitherSuite.scala index 3d0e6cac73..1de9fcf68a 100644 --- a/tests/shared/src/test/scala/cats/tests/EitherSuite.scala +++ b/tests/shared/src/test/scala/cats/tests/EitherSuite.scala @@ -21,18 +21,18 @@ package cats.tests -import cats._ +import cats.* import cats.data.{EitherT, NonEmptyChain, NonEmptyList, NonEmptySet, NonEmptyVector, Validated} -import cats.syntax.bifunctor._ +import cats.syntax.bifunctor.* import cats.kernel.laws.discipline.{EqTests, MonoidTests, OrderTests, PartialOrderTests, SemigroupTests} -import cats.laws.discipline._ -import cats.laws.discipline.arbitrary._ +import cats.laws.discipline.* +import cats.laws.discipline.arbitrary.* import cats.laws.discipline.SemigroupalTests.Isomorphisms -import cats.syntax.either._ +import cats.syntax.either.* import scala.util.Try -import cats.syntax.eq._ -import org.scalacheck.Prop._ +import cats.syntax.eq.* +import org.scalacheck.Prop.* class EitherSuite extends CatsSuite { implicit val iso: Isomorphisms[Either[Int, *]] = Isomorphisms.invariant[Either[Int, *]] @@ -425,7 +425,7 @@ class EitherSuite extends CatsSuite { } test("leftFlatMapOrKeep consistent with swap and then flatMapOrKeep") { - import cats.syntax.monad._ + import cats.syntax.monad.* forAll { (either: Either[String, Int], pf: PartialFunction[String, Either[String, Int]]) => assert(either.leftFlatMapOrKeep(pf) === either.swap.flatMapOrKeep { case a => @@ -448,8 +448,8 @@ class EitherSuite extends CatsSuite { final class EitherInstancesSuite extends munit.FunSuite { test("parallel instance in cats.instances.either") { - import cats.instances.either._ - import cats.syntax.parallel._ + import cats.instances.either.* + import cats.syntax.parallel.* def either: Either[String, Int] = Left("Test") (either, either).parTupled diff --git a/tests/shared/src/test/scala/cats/tests/EitherTSuite.scala b/tests/shared/src/test/scala/cats/tests/EitherTSuite.scala index 564c26721e..6fa91b7243 100644 --- a/tests/shared/src/test/scala/cats/tests/EitherTSuite.scala +++ b/tests/shared/src/test/scala/cats/tests/EitherTSuite.scala @@ -21,18 +21,18 @@ package cats.tests -import cats._ +import cats.* import cats.data.{EitherT, Ior, IorT, State} import cats.kernel.laws.discipline.{EqTests, MonoidTests, OrderTests, PartialOrderTests, SemigroupTests} -import cats.laws.discipline._ -import cats.laws.discipline.arbitrary._ +import cats.laws.discipline.* +import cats.laws.discipline.arbitrary.* import cats.laws.discipline.SemigroupalTests.Isomorphisms -import cats.syntax.applicative._ -import cats.syntax.applicativeError._ -import cats.syntax.either._ +import cats.syntax.applicative.* +import cats.syntax.applicativeError.* +import cats.syntax.either.* import scala.util.{Failure, Success, Try} -import cats.syntax.eq._ -import org.scalacheck.Prop._ +import cats.syntax.eq.* +import org.scalacheck.Prop.* class EitherTSuite extends CatsSuite { implicit val iso: Isomorphisms[EitherT[ListWrapper, String, *]] = Isomorphisms diff --git a/tests/shared/src/test/scala/cats/tests/EqSuite.scala b/tests/shared/src/test/scala/cats/tests/EqSuite.scala index a08fa60e96..4583860037 100644 --- a/tests/shared/src/test/scala/cats/tests/EqSuite.scala +++ b/tests/shared/src/test/scala/cats/tests/EqSuite.scala @@ -25,8 +25,8 @@ import cats.{Contravariant, ContravariantMonoidal, ContravariantSemigroupal, Inv import cats.kernel.Eq import cats.kernel.laws.discipline.SerializableTests import cats.laws.discipline.{ContravariantMonoidalTests, DeferTests, MiniInt} -import cats.laws.discipline.arbitrary._ -import cats.laws.discipline.eq._ +import cats.laws.discipline.arbitrary.* +import cats.laws.discipline.eq.* class EqSuite extends CatsSuite { Invariant[Eq] diff --git a/tests/shared/src/test/scala/cats/tests/EquivSuite.scala b/tests/shared/src/test/scala/cats/tests/EquivSuite.scala index b4de6aaaa8..1e2321380b 100644 --- a/tests/shared/src/test/scala/cats/tests/EquivSuite.scala +++ b/tests/shared/src/test/scala/cats/tests/EquivSuite.scala @@ -22,9 +22,9 @@ package cats.tests import cats.{Contravariant, ContravariantMonoidal, ContravariantSemigroupal, Invariant, Semigroupal} -import cats.laws.discipline.arbitrary._ -import cats.laws.discipline._ -import cats.laws.discipline.eq._ +import cats.laws.discipline.arbitrary.* +import cats.laws.discipline.* +import cats.laws.discipline.eq.* class EquivSuite extends CatsSuite { diff --git a/tests/shared/src/test/scala/cats/tests/EvalSuite.scala b/tests/shared/src/test/scala/cats/tests/EvalSuite.scala index 3819f36e2e..a2430d5752 100644 --- a/tests/shared/src/test/scala/cats/tests/EvalSuite.scala +++ b/tests/shared/src/test/scala/cats/tests/EvalSuite.scala @@ -31,15 +31,15 @@ import cats.laws.discipline.{ SemigroupalTests, SerializableTests } -import cats.laws.discipline.arbitrary._ +import cats.laws.discipline.arbitrary.* import cats.kernel.{Eq, Monoid, Order, PartialOrder, Semigroup} import cats.kernel.laws.discipline.{EqTests, GroupTests, MonoidTests, OrderTests, PartialOrderTests, SemigroupTests} import org.scalacheck.{Arbitrary, Cogen, Gen} import org.scalacheck.Arbitrary.arbitrary import scala.annotation.tailrec import scala.math.min -import cats.syntax.eq._ -import org.scalacheck.Prop._ +import cats.syntax.eq.* +import org.scalacheck.Prop.* class EvalSuite extends CatsSuite { implicit val eqThrow: Eq[Throwable] = Eq.allEqual diff --git a/tests/shared/src/test/scala/cats/tests/EvidenceSuite.scala b/tests/shared/src/test/scala/cats/tests/EvidenceSuite.scala index 3ad9d8506d..5a73ddbad5 100644 --- a/tests/shared/src/test/scala/cats/tests/EvidenceSuite.scala +++ b/tests/shared/src/test/scala/cats/tests/EvidenceSuite.scala @@ -21,7 +21,7 @@ package cats.tests -import cats.evidence._ +import cats.evidence.* class EvidenceSuite extends CatsSuite { diff --git a/tests/shared/src/test/scala/cats/tests/FiniteDurationSuite.scala b/tests/shared/src/test/scala/cats/tests/FiniteDurationSuite.scala index c682f6e5c9..b37eb8bdc4 100644 --- a/tests/shared/src/test/scala/cats/tests/FiniteDurationSuite.scala +++ b/tests/shared/src/test/scala/cats/tests/FiniteDurationSuite.scala @@ -24,7 +24,7 @@ package cats.tests import cats.Show import cats.laws.discipline.SerializableTests import scala.concurrent.duration.{DurationInt, FiniteDuration} -import cats.syntax.eq._ +import cats.syntax.eq.* class FiniteDurationSuite extends CatsSuite { checkAll("Show[FiniteDuration]", SerializableTests.serializable(Show[FiniteDuration])) diff --git a/tests/shared/src/test/scala/cats/tests/FoldableSuite.scala b/tests/shared/src/test/scala/cats/tests/FoldableSuite.scala index cceed901bf..75d2f4cad5 100644 --- a/tests/shared/src/test/scala/cats/tests/FoldableSuite.scala +++ b/tests/shared/src/test/scala/cats/tests/FoldableSuite.scala @@ -21,14 +21,14 @@ package cats.tests -import cats._ -import cats.data._ -import cats.instances.order._ -import cats.kernel.compat.scalaVersionSpecific._ -import cats.laws.discipline.arbitrary._ -import cats.syntax.all._ +import cats.* +import cats.data.* +import cats.instances.order.* +import cats.kernel.compat.scalaVersionSpecific.* +import cats.laws.discipline.arbitrary.* +import cats.syntax.all.* import org.scalacheck.Arbitrary -import org.scalacheck.Prop._ +import org.scalacheck.Prop.* import scala.collection.immutable.SortedMap import scala.collection.immutable.SortedSet diff --git a/tests/shared/src/test/scala/cats/tests/FuncSuite.scala b/tests/shared/src/test/scala/cats/tests/FuncSuite.scala index 45c466b44e..ef86b2a23e 100644 --- a/tests/shared/src/test/scala/cats/tests/FuncSuite.scala +++ b/tests/shared/src/test/scala/cats/tests/FuncSuite.scala @@ -25,13 +25,13 @@ import cats.{Applicative, Apply, Contravariant, Functor, Semigroupal, Show} import cats.data.{AppFunc, Func} import cats.data.Func.appFunc import cats.kernel.Eq -import cats.laws.discipline._ -import cats.laws.discipline.arbitrary._ +import cats.laws.discipline.* +import cats.laws.discipline.arbitrary.* import cats.laws.discipline.SemigroupalTests.Isomorphisms -import cats.syntax.eq._ +import cats.syntax.eq.* class FuncSuite extends CatsSuite { - import cats.laws.discipline.eq._ + import cats.laws.discipline.eq.* implicit def funcEq[F[_], A, B](implicit ev: Eq[A => F[B]]): Eq[Func[F, A, B]] = Eq.by[Func[F, A, B], A => F[B]](_.run) implicit def appFuncEq[F[_], A, B](implicit ev: Eq[A => F[B]]): Eq[AppFunc[F, A, B]] = diff --git a/tests/shared/src/test/scala/cats/tests/FunctionKLiftCrossBuildSuite.scala b/tests/shared/src/test/scala/cats/tests/FunctionKLiftCrossBuildSuite.scala index 5edb678a96..da30a87aec 100644 --- a/tests/shared/src/test/scala/cats/tests/FunctionKLiftCrossBuildSuite.scala +++ b/tests/shared/src/test/scala/cats/tests/FunctionKLiftCrossBuildSuite.scala @@ -22,8 +22,8 @@ package cats.tests import cats.arrow.FunctionK -import cats.syntax.all._ -import org.scalacheck.Prop._ +import cats.syntax.all.* +import org.scalacheck.Prop.* class FunctionKLiftCrossBuildSuite extends CatsSuite { test("lift a function directly") { diff --git a/tests/shared/src/test/scala/cats/tests/FunctionKSuite.scala b/tests/shared/src/test/scala/cats/tests/FunctionKSuite.scala index 826a808b23..a795900855 100644 --- a/tests/shared/src/test/scala/cats/tests/FunctionKSuite.scala +++ b/tests/shared/src/test/scala/cats/tests/FunctionKSuite.scala @@ -23,9 +23,9 @@ package cats.tests import cats.arrow.FunctionK import cats.data.{EitherK, NonEmptyList} -import cats.syntax.eq._ +import cats.syntax.eq.* import cats.Id -import org.scalacheck.Prop._ +import org.scalacheck.Prop.* class FunctionKSuite extends CatsSuite { type OptionOfNel[+A] = Option[NonEmptyList[A]] diff --git a/tests/shared/src/test/scala/cats/tests/FunctionSuite.scala b/tests/shared/src/test/scala/cats/tests/FunctionSuite.scala index 4be40b0921..4739c0a1e8 100644 --- a/tests/shared/src/test/scala/cats/tests/FunctionSuite.scala +++ b/tests/shared/src/test/scala/cats/tests/FunctionSuite.scala @@ -35,7 +35,7 @@ import cats.{ Semigroupal } import cats.arrow.{ArrowChoice, Choice, CommutativeArrow} -import cats.kernel._ +import cats.kernel.* import cats.kernel.laws.discipline.{ BandTests, BoundedSemilatticeTests, @@ -52,17 +52,17 @@ import cats.kernel.laws.discipline.{ SemilatticeTests, SerializableTests } -import cats.laws.discipline._ +import cats.laws.discipline.* import cats.laws.discipline.SemigroupalTests.Isomorphisms -import cats.laws.discipline.eq._ -import cats.laws.discipline.arbitrary._ -import cats.syntax.foldable._ +import cats.laws.discipline.eq.* +import cats.laws.discipline.arbitrary.* +import cats.syntax.foldable.* import org.scalacheck.Gen -import org.scalacheck.Prop._ +import org.scalacheck.Prop.* class FunctionSuite extends CatsSuite { - import Helpers._ + import Helpers.* checkAll("Function0[Int]", SemigroupalTests[Function0].semigroupal[Int, Int, Int]) checkAll("Semigroupal[Function0]", SerializableTests.serializable(Semigroupal[Function0])) diff --git a/tests/shared/src/test/scala/cats/tests/FunctorSuite.scala b/tests/shared/src/test/scala/cats/tests/FunctorSuite.scala index 1c22cc0870..1f94da7456 100644 --- a/tests/shared/src/test/scala/cats/tests/FunctorSuite.scala +++ b/tests/shared/src/test/scala/cats/tests/FunctorSuite.scala @@ -22,11 +22,11 @@ package cats.tests import cats.Functor -import cats.syntax.functor._ +import cats.syntax.functor.* import cats.data.{NonEmptyList, NonEmptyMap} -import cats.laws.discipline.arbitrary._ -import cats.syntax.eq._ -import org.scalacheck.Prop._ +import cats.laws.discipline.arbitrary.* +import cats.syntax.eq.* +import org.scalacheck.Prop.* class FunctorSuite extends CatsSuite { test("void replaces values with unit preserving structure") { diff --git a/tests/shared/src/test/scala/cats/tests/GroupSuite.scala b/tests/shared/src/test/scala/cats/tests/GroupSuite.scala index d6149ca942..3f08f8fe3d 100644 --- a/tests/shared/src/test/scala/cats/tests/GroupSuite.scala +++ b/tests/shared/src/test/scala/cats/tests/GroupSuite.scala @@ -23,7 +23,7 @@ package cats.tests import cats.kernel.Group import cats.kernel.laws.discipline.GroupTests -import cats.syntax.eq._ +import cats.syntax.eq.* class GroupSuite extends CatsSuite { test("combine minValue") { diff --git a/tests/shared/src/test/scala/cats/tests/HashSuite.scala b/tests/shared/src/test/scala/cats/tests/HashSuite.scala index c81d78f069..d70f562a45 100644 --- a/tests/shared/src/test/scala/cats/tests/HashSuite.scala +++ b/tests/shared/src/test/scala/cats/tests/HashSuite.scala @@ -24,9 +24,9 @@ package cats.tests import cats.{Contravariant, Invariant} import cats.kernel.Hash import cats.laws.discipline.{DeferTests, MiniInt} -import cats.laws.discipline.arbitrary._ -import cats.laws.discipline.eq._ -import cats.syntax.hash._ +import cats.laws.discipline.arbitrary.* +import cats.laws.discipline.eq.* +import cats.syntax.hash.* class HashSuite extends CatsSuite { diff --git a/tests/shared/src/test/scala/cats/tests/IdSuite.scala b/tests/shared/src/test/scala/cats/tests/IdSuite.scala index 7aeb2801fa..274a1def08 100644 --- a/tests/shared/src/test/scala/cats/tests/IdSuite.scala +++ b/tests/shared/src/test/scala/cats/tests/IdSuite.scala @@ -21,12 +21,12 @@ package cats.tests -import cats.laws.discipline._ -import cats.laws.discipline.arbitrary._ -import cats.syntax.applicative._ -import cats.syntax.eq._ +import cats.laws.discipline.* +import cats.laws.discipline.arbitrary.* +import cats.syntax.applicative.* +import cats.syntax.eq.* import cats.{Bimonad, CommutativeMonad, Id, Reducible, Semigroupal, Traverse} -import org.scalacheck.Prop._ +import org.scalacheck.Prop.* import cats.Align class IdSuite extends CatsSuite { diff --git a/tests/shared/src/test/scala/cats/tests/IdTSuite.scala b/tests/shared/src/test/scala/cats/tests/IdTSuite.scala index 64334919bf..61426af9de 100644 --- a/tests/shared/src/test/scala/cats/tests/IdTSuite.scala +++ b/tests/shared/src/test/scala/cats/tests/IdTSuite.scala @@ -21,15 +21,15 @@ package cats.tests -import cats._ +import cats.* import cats.data.{Const, IdT, NonEmptyList} import cats.kernel.laws.discipline.{EqTests, OrderTests} -import cats.laws.discipline._ -import cats.laws.discipline.arbitrary._ +import cats.laws.discipline.* +import cats.laws.discipline.arbitrary.* import cats.laws.discipline.SemigroupalTests.Isomorphisms import cats.tests.Helpers.CSemi -import cats.syntax.eq._ -import org.scalacheck.Prop._ +import cats.syntax.eq.* +import org.scalacheck.Prop.* class IdTSuite extends CatsSuite { diff --git a/tests/shared/src/test/scala/cats/tests/IndexedReaderWriterStateTSuite.scala b/tests/shared/src/test/scala/cats/tests/IndexedReaderWriterStateTSuite.scala index 82224e00ac..d278cc9315 100644 --- a/tests/shared/src/test/scala/cats/tests/IndexedReaderWriterStateTSuite.scala +++ b/tests/shared/src/test/scala/cats/tests/IndexedReaderWriterStateTSuite.scala @@ -21,23 +21,23 @@ package cats.tests -import cats._ +import cats.* import cats.arrow.{Profunctor, Strong} import cats.data.{EitherT, IRWST, IndexedReaderWriterStateT, ReaderWriterState, ReaderWriterStateT} import cats.kernel.{Eq, Monoid} -import cats.laws.discipline._ -import cats.laws.discipline.eq._ -import cats.laws.discipline.arbitrary._ +import cats.laws.discipline.* +import cats.laws.discipline.eq.* +import cats.laws.discipline.arbitrary.* import cats.laws.discipline.SemigroupalTests.Isomorphisms -import cats.syntax.apply._ -import cats.syntax.semigroup._ -import cats.syntax.traverse._ +import cats.syntax.apply.* +import cats.syntax.semigroup.* +import cats.syntax.traverse.* import org.scalacheck.Arbitrary -import cats.syntax.eq._ -import org.scalacheck.Prop._ +import cats.syntax.eq.* +import org.scalacheck.Prop.* class ReaderWriterStateTSuite extends CatsSuite { - import ReaderWriterStateTSuite._ + import ReaderWriterStateTSuite.* test("Basic ReaderWriterState usage") { forAll { (context: String, initial: Int) => diff --git a/tests/shared/src/test/scala/cats/tests/IndexedStateTSuite.scala b/tests/shared/src/test/scala/cats/tests/IndexedStateTSuite.scala index 839b38eabf..3aa513c134 100644 --- a/tests/shared/src/test/scala/cats/tests/IndexedStateTSuite.scala +++ b/tests/shared/src/test/scala/cats/tests/IndexedStateTSuite.scala @@ -21,7 +21,7 @@ package cats.tests -import cats._ +import cats.* import cats.arrow.Profunctor import cats.arrow.Strong import cats.data.EitherT @@ -29,12 +29,12 @@ import cats.data.IndexedStateT import cats.data.State import cats.data.StateT import cats.laws.discipline.SemigroupalTests.Isomorphisms -import cats.laws.discipline._ -import cats.laws.discipline.arbitrary._ -import cats.laws.discipline.eq._ +import cats.laws.discipline.* +import cats.laws.discipline.arbitrary.* +import cats.laws.discipline.eq.* import cats.platform.Platform -import cats.syntax.all._ -import org.scalacheck.Prop._ +import cats.syntax.all.* +import org.scalacheck.Prop.* import org.scalacheck.Test.Parameters class IndexedStateTSuite extends CatsSuite { @@ -42,7 +42,7 @@ class IndexedStateTSuite extends CatsSuite { implicit override val scalaCheckTestParameters: Parameters = checkConfiguration.withMaxSize(checkConfiguration.minSize + 5) - import IndexedStateTSuite._ + import IndexedStateTSuite.* test("basic state usage") { assert(add1.run(1).value === (2 -> 1)) diff --git a/tests/shared/src/test/scala/cats/tests/InjectKSuite.scala b/tests/shared/src/test/scala/cats/tests/InjectKSuite.scala index 7a396b38ed..7a134ad7c8 100644 --- a/tests/shared/src/test/scala/cats/tests/InjectKSuite.scala +++ b/tests/shared/src/test/scala/cats/tests/InjectKSuite.scala @@ -25,9 +25,9 @@ import cats.{:<:, Functor, InjectK} import cats.data.EitherK import cats.kernel.Eq import cats.laws.discipline.InjectKTests -import org.scalacheck._ -import cats.syntax.eq._ -import org.scalacheck.Prop._ +import org.scalacheck.* +import cats.syntax.eq.* +import org.scalacheck.Prop.* class InjectKSuite extends CatsSuite { diff --git a/tests/shared/src/test/scala/cats/tests/InjectSuite.scala b/tests/shared/src/test/scala/cats/tests/InjectSuite.scala index 15d01b6ff1..6538ec3109 100644 --- a/tests/shared/src/test/scala/cats/tests/InjectSuite.scala +++ b/tests/shared/src/test/scala/cats/tests/InjectSuite.scala @@ -23,8 +23,8 @@ package cats.tests import cats.Inject import cats.laws.discipline.InjectTests -import cats.syntax.eq._ -import org.scalacheck.Prop._ +import cats.syntax.eq.* +import org.scalacheck.Prop.* class InjectSuite extends CatsSuite { diff --git a/tests/shared/src/test/scala/cats/tests/IorSuite.scala b/tests/shared/src/test/scala/cats/tests/IorSuite.scala index fe927fe695..3357a45d3e 100644 --- a/tests/shared/src/test/scala/cats/tests/IorSuite.scala +++ b/tests/shared/src/test/scala/cats/tests/IorSuite.scala @@ -34,10 +34,10 @@ import cats.laws.discipline.{ TraverseTests } import cats.laws.discipline.SemigroupalTests.Isomorphisms -import cats.laws.discipline.arbitrary._ -import org.scalacheck.Arbitrary._ -import cats.syntax.eq._ -import org.scalacheck.Prop._ +import cats.laws.discipline.arbitrary.* +import org.scalacheck.Arbitrary.* +import cats.syntax.eq.* +import org.scalacheck.Prop.* class IorSuite extends CatsSuite { diff --git a/tests/shared/src/test/scala/cats/tests/IorTSuite.scala b/tests/shared/src/test/scala/cats/tests/IorTSuite.scala index e1ee78b3e3..6f20a49075 100644 --- a/tests/shared/src/test/scala/cats/tests/IorTSuite.scala +++ b/tests/shared/src/test/scala/cats/tests/IorTSuite.scala @@ -21,14 +21,14 @@ package cats.tests -import cats._ +import cats.* import cats.data.{Ior, IorT} import cats.kernel.{Eq, Monoid, Order, Semigroup} import cats.kernel.laws.discipline.{EqTests, MonoidTests, SemigroupTests} -import cats.laws.discipline._ -import cats.laws.discipline.arbitrary._ -import cats.syntax.eq._ -import org.scalacheck.Prop._ +import cats.laws.discipline.* +import cats.laws.discipline.arbitrary.* +import cats.syntax.eq.* +import org.scalacheck.Prop.* import cats.kernel.laws.discipline.OrderTests class IorTSuite extends CatsSuite { diff --git a/tests/shared/src/test/scala/cats/tests/IsSuite.scala b/tests/shared/src/test/scala/cats/tests/IsSuite.scala index 19c43ea178..8eb4ae4d43 100644 --- a/tests/shared/src/test/scala/cats/tests/IsSuite.scala +++ b/tests/shared/src/test/scala/cats/tests/IsSuite.scala @@ -21,7 +21,7 @@ package cats.tests -import cats.arrow._ +import cats.arrow.* import cats.evidence.{Is, Leibniz} import cats.kernel.Eq import cats.kernel.laws.discipline.SerializableTests diff --git a/tests/shared/src/test/scala/cats/tests/KernelContravariantSuite.scala b/tests/shared/src/test/scala/cats/tests/KernelContravariantSuite.scala index 29a82c5341..7f7e9aa512 100644 --- a/tests/shared/src/test/scala/cats/tests/KernelContravariantSuite.scala +++ b/tests/shared/src/test/scala/cats/tests/KernelContravariantSuite.scala @@ -23,9 +23,9 @@ package cats.tests import cats.{Contravariant, ContravariantSemigroupal, Invariant, Semigroupal} import cats.kernel.{Eq, Hash, Order, PartialOrder} -import cats.laws.discipline.arbitrary._ -import cats.laws.discipline._ -import cats.laws.discipline.eq._ +import cats.laws.discipline.arbitrary.* +import cats.laws.discipline.* +import cats.laws.discipline.eq.* class KernelContravariantSuite extends CatsSuite { Invariant[Eq] diff --git a/tests/shared/src/test/scala/cats/tests/KleisliSuite.scala b/tests/shared/src/test/scala/cats/tests/KleisliSuite.scala index 56de674069..5f3f4a04f8 100644 --- a/tests/shared/src/test/scala/cats/tests/KleisliSuite.scala +++ b/tests/shared/src/test/scala/cats/tests/KleisliSuite.scala @@ -21,19 +21,19 @@ package cats.tests -import cats._ -import cats.arrow._ +import cats.* +import cats.arrow.* import cats.data.{Const, EitherT, Kleisli, Reader, ReaderT} import cats.kernel.laws.discipline.{MonoidTests, SemigroupTests} -import cats.laws.discipline._ -import cats.laws.discipline.arbitrary._ -import cats.laws.discipline.eq._ +import cats.laws.discipline.* +import cats.laws.discipline.arbitrary.* +import cats.laws.discipline.eq.* import cats.laws.discipline.SemigroupalTests.Isomorphisms import cats.laws.discipline.{DeferTests, MonoidKTests, SemigroupKTests} -import cats.syntax.all._ +import cats.syntax.all.* import cats.platform.Platform import cats.tests.Helpers.CSemi -import org.scalacheck.Prop._ +import org.scalacheck.Prop.* class KleisliSuite extends CatsSuite { implicit def kleisliEq[F[_], A, B](implicit ev: Eq[A => F[B]]): Eq[Kleisli[F, A, B]] = diff --git a/tests/shared/src/test/scala/cats/tests/ListSuite.scala b/tests/shared/src/test/scala/cats/tests/ListSuite.scala index d23c224fdb..59e287587f 100644 --- a/tests/shared/src/test/scala/cats/tests/ListSuite.scala +++ b/tests/shared/src/test/scala/cats/tests/ListSuite.scala @@ -35,11 +35,11 @@ import cats.laws.discipline.{ TraverseFilterTests, TraverseTests } -import cats.laws.discipline.arbitrary._ -import cats.syntax.list._ -import cats.syntax.show._ -import cats.syntax.eq._ -import org.scalacheck.Prop._ +import cats.laws.discipline.arbitrary.* +import cats.syntax.list.* +import cats.syntax.show.* +import cats.syntax.eq.* +import org.scalacheck.Prop.* class ListSuite extends CatsSuite { @@ -127,8 +127,8 @@ class ListSuite extends CatsSuite { final class ListInstancesSuite extends munit.FunSuite { test("NonEmptyParallel instance in cats.instances.list") { - import cats.instances.list._ - import cats.syntax.parallel._ + import cats.instances.list.* + import cats.syntax.parallel.* (List(1, 2, 3), List("A", "B", "C")).parTupled } diff --git a/tests/shared/src/test/scala/cats/tests/MapSuite.scala b/tests/shared/src/test/scala/cats/tests/MapSuite.scala index 495ff4b015..95684746be 100644 --- a/tests/shared/src/test/scala/cats/tests/MapSuite.scala +++ b/tests/shared/src/test/scala/cats/tests/MapSuite.scala @@ -36,9 +36,9 @@ import cats.laws.discipline.{ SerializableTests, UnorderedTraverseTests } -import cats.laws.discipline.arbitrary._ -import cats.syntax.all._ -import org.scalacheck.Prop._ +import cats.laws.discipline.arbitrary.* +import cats.syntax.all.* +import org.scalacheck.Prop.* class MapSuite extends CatsSuite { diff --git a/tests/shared/src/test/scala/cats/tests/MiniIntSuite.scala b/tests/shared/src/test/scala/cats/tests/MiniIntSuite.scala index 274992e72a..d1ed5f4550 100644 --- a/tests/shared/src/test/scala/cats/tests/MiniIntSuite.scala +++ b/tests/shared/src/test/scala/cats/tests/MiniIntSuite.scala @@ -22,13 +22,13 @@ package cats.tests import cats.kernel.{BoundedSemilattice, CommutativeGroup, CommutativeMonoid, Hash, Order} -import cats.kernel.laws.discipline._ +import cats.kernel.laws.discipline.* import cats.laws.discipline.MiniInt -import cats.laws.discipline.MiniInt._ -import cats.laws.discipline.arbitrary._ +import cats.laws.discipline.MiniInt.* +import cats.laws.discipline.arbitrary.* import org.scalacheck.Gen -import cats.syntax.eq._ -import org.scalacheck.Prop._ +import cats.syntax.eq.* +import org.scalacheck.Prop.* class MiniIntSuite extends CatsSuite { checkAll("MiniInt", OrderTests[MiniInt].order) diff --git a/tests/shared/src/test/scala/cats/tests/MonadErrorSuite.scala b/tests/shared/src/test/scala/cats/tests/MonadErrorSuite.scala index dd355641f1..ecae989ee4 100644 --- a/tests/shared/src/test/scala/cats/tests/MonadErrorSuite.scala +++ b/tests/shared/src/test/scala/cats/tests/MonadErrorSuite.scala @@ -22,10 +22,10 @@ package cats.tests import cats.kernel.Eq -import cats.syntax.applicativeError._ -import cats.syntax.monadError._ +import cats.syntax.applicativeError.* +import cats.syntax.monadError.* import scala.util.{Failure, Success, Try} -import cats.syntax.eq._ +import cats.syntax.eq.* class MonadErrorSuite extends CatsSuite { diff --git a/tests/shared/src/test/scala/cats/tests/MonadSuite.scala b/tests/shared/src/test/scala/cats/tests/MonadSuite.scala index aa5fa28794..48d3b464c8 100644 --- a/tests/shared/src/test/scala/cats/tests/MonadSuite.scala +++ b/tests/shared/src/test/scala/cats/tests/MonadSuite.scala @@ -22,11 +22,11 @@ package cats.tests import cats.data.{IndexedStateT, StateT} -import cats.syntax.apply._ -import cats.syntax.eq._ -import cats.syntax.monad._ +import cats.syntax.apply.* +import cats.syntax.eq.* +import cats.syntax.monad.* import cats.{Eval, Id, Monad} -import org.scalacheck.Prop._ +import org.scalacheck.Prop.* import org.scalacheck.{Arbitrary, Gen} class MonadSuite extends CatsSuite { diff --git a/tests/shared/src/test/scala/cats/tests/MonoidSuite.scala b/tests/shared/src/test/scala/cats/tests/MonoidSuite.scala index bfa0e6a6fd..1edc184bd6 100644 --- a/tests/shared/src/test/scala/cats/tests/MonoidSuite.scala +++ b/tests/shared/src/test/scala/cats/tests/MonoidSuite.scala @@ -23,7 +23,7 @@ package cats.tests import cats.{Invariant, InvariantSemigroupal} import cats.kernel.Monoid -import cats.syntax.eq._ +import cats.syntax.eq.* class MonoidSuite extends CatsSuite { { diff --git a/tests/shared/src/test/scala/cats/tests/NestedSuite.scala b/tests/shared/src/test/scala/cats/tests/NestedSuite.scala index 1325d874c2..fa4ce0cf42 100644 --- a/tests/shared/src/test/scala/cats/tests/NestedSuite.scala +++ b/tests/shared/src/test/scala/cats/tests/NestedSuite.scala @@ -21,12 +21,12 @@ package cats.tests -import cats._ -import cats.data._ -import cats.laws.discipline._ -import cats.laws.discipline.SemigroupalTests.Isomorphisms._ -import cats.laws.discipline.arbitrary._ -import cats.laws.discipline.eq._ +import cats.* +import cats.data.* +import cats.laws.discipline.* +import cats.laws.discipline.SemigroupalTests.Isomorphisms.* +import cats.laws.discipline.arbitrary.* +import cats.laws.discipline.eq.* import org.scalacheck.Test.Parameters import org.scalacheck.Arbitrary @@ -276,7 +276,7 @@ class NestedSuite extends CatsSuite { } { - import cats.laws.discipline.eq._ + import cats.laws.discipline.eq.* // Distributive composition checkAll( "Nested[Function1[MiniInt, *], Function0, *]", diff --git a/tests/shared/src/test/scala/cats/tests/NonEmptyChainSuite.scala b/tests/shared/src/test/scala/cats/tests/NonEmptyChainSuite.scala index 5fd0fadf74..626aed784f 100644 --- a/tests/shared/src/test/scala/cats/tests/NonEmptyChainSuite.scala +++ b/tests/shared/src/test/scala/cats/tests/NonEmptyChainSuite.scala @@ -21,7 +21,7 @@ package cats.tests -import cats._ +import cats.* import cats.data.Chain import cats.data.NonEmptyChain import cats.data.NonEmptyChainOps @@ -29,12 +29,12 @@ import cats.kernel.laws.discipline.EqTests import cats.kernel.laws.discipline.OrderTests import cats.kernel.laws.discipline.PartialOrderTests import cats.kernel.laws.discipline.SemigroupTests -import cats.laws.discipline._ -import cats.laws.discipline.arbitrary._ -import cats.syntax.either._ -import cats.syntax.eq._ -import cats.syntax.foldable._ -import org.scalacheck.Prop._ +import cats.laws.discipline.* +import cats.laws.discipline.arbitrary.* +import cats.syntax.either.* +import cats.syntax.eq.* +import cats.syntax.foldable.* +import org.scalacheck.Prop.* class NonEmptyChainSuite extends NonEmptyCollectionSuite[Chain, NonEmptyChain, NonEmptyChainOps] { protected def toList[A](value: NonEmptyChain[A]): List[A] = value.toChain.toList diff --git a/tests/shared/src/test/scala/cats/tests/NonEmptyCollectionSuite.scala b/tests/shared/src/test/scala/cats/tests/NonEmptyCollectionSuite.scala index b7a3bdb3f4..6147fd046a 100644 --- a/tests/shared/src/test/scala/cats/tests/NonEmptyCollectionSuite.scala +++ b/tests/shared/src/test/scala/cats/tests/NonEmptyCollectionSuite.scala @@ -23,8 +23,8 @@ package cats.tests import cats.data.NonEmptyCollection import org.scalacheck.Arbitrary -import cats.syntax.eq._ -import org.scalacheck.Prop._ +import cats.syntax.eq.* +import org.scalacheck.Prop.* abstract class NonEmptyCollectionSuite[U[+_], NE[+_], NEC[x] <: NonEmptyCollection[x, U, NE]](implicit arbitraryU: Arbitrary[U[Int]], diff --git a/tests/shared/src/test/scala/cats/tests/NonEmptyListSuite.scala b/tests/shared/src/test/scala/cats/tests/NonEmptyListSuite.scala index a72995abf8..7c6b0860b1 100644 --- a/tests/shared/src/test/scala/cats/tests/NonEmptyListSuite.scala +++ b/tests/shared/src/test/scala/cats/tests/NonEmptyListSuite.scala @@ -21,7 +21,7 @@ package cats.tests -import cats._ +import cats.* import cats.data.NonEmptyList import cats.data.NonEmptyList.ZipNonEmptyList import cats.data.NonEmptyMap @@ -31,13 +31,13 @@ import cats.kernel.laws.discipline.EqTests import cats.kernel.laws.discipline.OrderTests import cats.kernel.laws.discipline.PartialOrderTests import cats.kernel.laws.discipline.SemigroupTests -import cats.laws.discipline._ -import cats.laws.discipline.arbitrary._ -import cats.syntax.eq._ -import cats.syntax.foldable._ -import cats.syntax.reducible._ -import cats.syntax.show._ -import org.scalacheck.Prop._ +import cats.laws.discipline.* +import cats.laws.discipline.arbitrary.* +import cats.syntax.eq.* +import cats.syntax.foldable.* +import cats.syntax.reducible.* +import cats.syntax.show.* +import org.scalacheck.Prop.* import org.scalacheck.Test.Parameters import scala.collection.immutable.SortedMap diff --git a/tests/shared/src/test/scala/cats/tests/NonEmptyMapSuite.scala b/tests/shared/src/test/scala/cats/tests/NonEmptyMapSuite.scala index 2738204776..3392a2cf7f 100644 --- a/tests/shared/src/test/scala/cats/tests/NonEmptyMapSuite.scala +++ b/tests/shared/src/test/scala/cats/tests/NonEmptyMapSuite.scala @@ -23,17 +23,17 @@ package cats.tests import cats.{Align, Eval, Foldable, Now, Semigroup, SemigroupK, Show} import cats.data.{NonEmptyList, NonEmptyMap} -import cats.kernel.laws.discipline.{SerializableTests => _, _} -import cats.laws.discipline._ -import cats.laws.discipline.arbitrary._ -import cats.syntax.bifunctor._ -import cats.syntax.eq._ -import cats.syntax.foldable._ -import cats.syntax.functor._ -import cats.syntax.reducible._ -import cats.syntax.show._ +import cats.kernel.laws.discipline.{SerializableTests => _, *} +import cats.laws.discipline.* +import cats.laws.discipline.arbitrary.* +import cats.syntax.bifunctor.* +import cats.syntax.eq.* +import cats.syntax.foldable.* +import cats.syntax.functor.* +import cats.syntax.reducible.* +import cats.syntax.show.* import scala.collection.immutable.SortedMap -import org.scalacheck.Prop._ +import org.scalacheck.Prop.* class NonEmptyMapSuite extends CatsSuite { diff --git a/tests/shared/src/test/scala/cats/tests/NonEmptySeqSuite.scala b/tests/shared/src/test/scala/cats/tests/NonEmptySeqSuite.scala index 36899298bc..3d41597f26 100644 --- a/tests/shared/src/test/scala/cats/tests/NonEmptySeqSuite.scala +++ b/tests/shared/src/test/scala/cats/tests/NonEmptySeqSuite.scala @@ -21,13 +21,13 @@ package cats.tests -import cats._ +import cats.* import cats.data.NonEmptySeq import cats.kernel.laws.discipline.SemigroupTests -import cats.laws.discipline._ -import cats.laws.discipline.arbitrary._ -import cats.syntax.all._ -import org.scalacheck.Prop._ +import cats.laws.discipline.* +import cats.laws.discipline.arbitrary.* +import cats.syntax.all.* +import org.scalacheck.Prop.* import scala.collection.immutable.Seq diff --git a/tests/shared/src/test/scala/cats/tests/NonEmptySetSuite.scala b/tests/shared/src/test/scala/cats/tests/NonEmptySetSuite.scala index 5841978266..289450008f 100644 --- a/tests/shared/src/test/scala/cats/tests/NonEmptySetSuite.scala +++ b/tests/shared/src/test/scala/cats/tests/NonEmptySetSuite.scala @@ -25,14 +25,14 @@ import cats.{Eval, Now, Reducible, SemigroupK, Show} import cats.data.NonEmptySet import cats.kernel.{Eq, Order, PartialOrder, Semilattice} import cats.kernel.laws.discipline.{EqTests, HashTests, OrderTests, SemilatticeTests} -import cats.laws.discipline._ -import cats.laws.discipline.arbitrary._ -import cats.syntax.foldable._ -import cats.syntax.reducible._ -import cats.syntax.show._ +import cats.laws.discipline.* +import cats.laws.discipline.arbitrary.* +import cats.syntax.foldable.* +import cats.syntax.reducible.* +import cats.syntax.show.* import scala.collection.immutable.SortedSet -import cats.syntax.eq._ -import org.scalacheck.Prop._ +import cats.syntax.eq.* +import org.scalacheck.Prop.* class NonEmptySetSuite extends CatsSuite { diff --git a/tests/shared/src/test/scala/cats/tests/NonEmptyVectorSuite.scala b/tests/shared/src/test/scala/cats/tests/NonEmptyVectorSuite.scala index 0656ca9d94..9906975767 100644 --- a/tests/shared/src/test/scala/cats/tests/NonEmptyVectorSuite.scala +++ b/tests/shared/src/test/scala/cats/tests/NonEmptyVectorSuite.scala @@ -21,7 +21,7 @@ package cats.tests -import cats._ +import cats.* import cats.data.NonEmptyVector import cats.data.NonEmptyVector.ZipNonEmptyVector import cats.kernel.instances.order.catsKernelOrderingForOrder @@ -30,14 +30,14 @@ import cats.kernel.laws.discipline.HashTests import cats.kernel.laws.discipline.OrderTests import cats.kernel.laws.discipline.SemigroupTests import cats.kernel.laws.discipline.PartialOrderTests -import cats.laws.discipline._ -import cats.laws.discipline.arbitrary._ +import cats.laws.discipline.* +import cats.laws.discipline.arbitrary.* import cats.platform.Platform -import cats.syntax.eq._ -import cats.syntax.foldable._ -import cats.syntax.reducible._ -import cats.syntax.show._ -import org.scalacheck.Prop._ +import cats.syntax.eq.* +import cats.syntax.foldable.* +import cats.syntax.reducible.* +import cats.syntax.show.* +import org.scalacheck.Prop.* import org.scalacheck.Test.Parameters import scala.util.Properties diff --git a/tests/shared/src/test/scala/cats/tests/OneAndSuite.scala b/tests/shared/src/test/scala/cats/tests/OneAndSuite.scala index d7b57e889b..213efe48b3 100644 --- a/tests/shared/src/test/scala/cats/tests/OneAndSuite.scala +++ b/tests/shared/src/test/scala/cats/tests/OneAndSuite.scala @@ -36,11 +36,11 @@ import cats.kernel.laws.discipline.EqTests import cats.kernel.laws.discipline.OrderTests import cats.kernel.laws.discipline.PartialOrderTests import cats.laws.discipline.SemigroupalTests.Isomorphisms -import cats.laws.discipline._ -import cats.laws.discipline.arbitrary._ -import cats.syntax.foldable._ -import cats.syntax.order._ -import org.scalacheck.Prop._ +import cats.laws.discipline.* +import cats.laws.discipline.arbitrary.* +import cats.syntax.foldable.* +import cats.syntax.order.* +import org.scalacheck.Prop.* import org.scalacheck.Test.Parameters class OneAndSuite extends CatsSuite { diff --git a/tests/shared/src/test/scala/cats/tests/OpSuite.scala b/tests/shared/src/test/scala/cats/tests/OpSuite.scala index aa273e7b7b..c476744795 100644 --- a/tests/shared/src/test/scala/cats/tests/OpSuite.scala +++ b/tests/shared/src/test/scala/cats/tests/OpSuite.scala @@ -21,12 +21,12 @@ package cats.tests -import cats.arrow._ +import cats.arrow.* import cats.data.{Kleisli, Op} import cats.kernel.Eq -import cats.laws.discipline._ -import cats.laws.discipline.arbitrary._ -import cats.laws.discipline.eq._ +import cats.laws.discipline.* +import cats.laws.discipline.arbitrary.* +import cats.laws.discipline.eq.* import cats.kernel.laws.discipline.EqTests class OpSuite extends CatsSuite { diff --git a/tests/shared/src/test/scala/cats/tests/OptionSuite.scala b/tests/shared/src/test/scala/cats/tests/OptionSuite.scala index 4fca282522..b013c7226b 100644 --- a/tests/shared/src/test/scala/cats/tests/OptionSuite.scala +++ b/tests/shared/src/test/scala/cats/tests/OptionSuite.scala @@ -21,12 +21,12 @@ package cats.tests -import cats.laws.discipline._ -import cats.laws.discipline.arbitrary._ +import cats.laws.discipline.* +import cats.laws.discipline.arbitrary.* import cats.laws.{ApplicativeLaws, CoflatMapLaws, FlatMapLaws, MonadLaws} -import cats.syntax.apply._ -import cats.syntax.option._ -import cats.syntax.show._ +import cats.syntax.apply.* +import cats.syntax.option.* +import cats.syntax.show.* import cats.{ Align, Alternative, @@ -39,8 +39,8 @@ import cats.{ Traverse, TraverseFilter } -import cats.syntax.eq._ -import org.scalacheck.Prop._ +import cats.syntax.eq.* +import org.scalacheck.Prop.* class OptionSuite extends CatsSuite { checkAll("Option[Int]", SemigroupalTests[Option].semigroupal[Int, Int, Int]) diff --git a/tests/shared/src/test/scala/cats/tests/OptionTSuite.scala b/tests/shared/src/test/scala/cats/tests/OptionTSuite.scala index bb6ae51483..1fe21fa7ea 100644 --- a/tests/shared/src/test/scala/cats/tests/OptionTSuite.scala +++ b/tests/shared/src/test/scala/cats/tests/OptionTSuite.scala @@ -21,20 +21,20 @@ package cats.tests -import cats._ +import cats.* import cats.data.{Const, IdT, OptionT, State} import cats.kernel.laws.discipline.{EqTests, MonoidTests, OrderTests, PartialOrderTests, SemigroupTests} -import cats.laws.discipline._ -import cats.laws.discipline.arbitrary._ -import cats.laws.discipline.eq._ +import cats.laws.discipline.* +import cats.laws.discipline.arbitrary.* +import cats.laws.discipline.eq.* import cats.laws.discipline.SemigroupalTests.Isomorphisms -import cats.syntax.applicative._ -import cats.syntax.either._ -import cats.syntax.flatMap._ -import cats.syntax.functor._ -import cats.syntax.monadError._ -import cats.syntax.eq._ -import org.scalacheck.Prop._ +import cats.syntax.applicative.* +import cats.syntax.either.* +import cats.syntax.flatMap.* +import cats.syntax.functor.* +import cats.syntax.monadError.* +import cats.syntax.eq.* +import org.scalacheck.Prop.* class OptionTSuite extends CatsSuite { implicit val iso: Isomorphisms[OptionT[ListWrapper, *]] = Isomorphisms diff --git a/tests/shared/src/test/scala/cats/tests/OrderSuite.scala b/tests/shared/src/test/scala/cats/tests/OrderSuite.scala index ec093bea93..1082839a13 100644 --- a/tests/shared/src/test/scala/cats/tests/OrderSuite.scala +++ b/tests/shared/src/test/scala/cats/tests/OrderSuite.scala @@ -25,11 +25,11 @@ import cats.{Contravariant, ContravariantMonoidal, Invariant} import cats.kernel.{Order, PartialOrder} import cats.kernel.laws.discipline.{OrderTests, SerializableTests} import cats.laws.discipline.{ContravariantMonoidalTests, DeferTests, MiniInt} -import cats.laws.discipline.arbitrary._ -import cats.laws.discipline.eq._ +import cats.laws.discipline.arbitrary.* +import cats.laws.discipline.eq.* import cats.tests.Helpers.Ord -import cats.syntax.all._ -import org.scalacheck.Prop._ +import cats.syntax.all.* +import org.scalacheck.Prop.* class OrderSuite extends CatsSuite { { diff --git a/tests/shared/src/test/scala/cats/tests/OrderingSuite.scala b/tests/shared/src/test/scala/cats/tests/OrderingSuite.scala index b06b5d7dd3..0d5a6dcf3b 100644 --- a/tests/shared/src/test/scala/cats/tests/OrderingSuite.scala +++ b/tests/shared/src/test/scala/cats/tests/OrderingSuite.scala @@ -22,9 +22,9 @@ package cats.tests import cats.{Contravariant, ContravariantMonoidal, ContravariantSemigroupal, Invariant, Semigroupal} -import cats.laws.discipline.arbitrary._ -import cats.laws.discipline._ -import cats.laws.discipline.eq._ +import cats.laws.discipline.arbitrary.* +import cats.laws.discipline.* +import cats.laws.discipline.eq.* class OrderingSuite extends CatsSuite { diff --git a/tests/shared/src/test/scala/cats/tests/ParallelSuite.scala b/tests/shared/src/test/scala/cats/tests/ParallelSuite.scala index 869b2611b5..a57c1b8d7e 100644 --- a/tests/shared/src/test/scala/cats/tests/ParallelSuite.scala +++ b/tests/shared/src/test/scala/cats/tests/ParallelSuite.scala @@ -21,17 +21,17 @@ package cats.tests -import cats._ +import cats.* import cats.data.NonEmptyList.ZipNonEmptyList -import cats.data._ -import cats.kernel.compat.scalaVersionSpecific._ -import cats.laws.discipline._ -import cats.laws.discipline.arbitrary._ -import cats.laws.discipline.eq._ -import cats.syntax.all._ +import cats.data.* +import cats.kernel.compat.scalaVersionSpecific.* +import cats.laws.discipline.* +import cats.laws.discipline.arbitrary.* +import cats.laws.discipline.eq.* +import cats.syntax.all.* import org.scalacheck.Arbitrary import org.scalacheck.Gen -import org.scalacheck.Prop._ +import org.scalacheck.Prop.* import scala.collection.immutable.SortedSet diff --git a/tests/shared/src/test/scala/cats/tests/PartialFunctionSuite.scala b/tests/shared/src/test/scala/cats/tests/PartialFunctionSuite.scala index f364507802..3ca28a3ae7 100644 --- a/tests/shared/src/test/scala/cats/tests/PartialFunctionSuite.scala +++ b/tests/shared/src/test/scala/cats/tests/PartialFunctionSuite.scala @@ -22,8 +22,8 @@ package cats.tests import cats.arrow.{ArrowChoice, CommutativeArrow} import cats.kernel.laws.discipline.SerializableTests -import cats.laws.discipline.arbitrary._ -import cats.laws.discipline.eq._ +import cats.laws.discipline.arbitrary.* +import cats.laws.discipline.eq.* import cats.laws.discipline.{ArrowChoiceTests, CommutativeArrowTests, MiniInt} class PartialFunctionSuite extends CatsSuite { diff --git a/tests/shared/src/test/scala/cats/tests/PartialOrderSuite.scala b/tests/shared/src/test/scala/cats/tests/PartialOrderSuite.scala index 5fffe1c874..05a63a0b0e 100644 --- a/tests/shared/src/test/scala/cats/tests/PartialOrderSuite.scala +++ b/tests/shared/src/test/scala/cats/tests/PartialOrderSuite.scala @@ -25,11 +25,11 @@ import cats.{Contravariant, ContravariantMonoidal, Invariant} import cats.kernel.{Order, PartialOrder} import cats.kernel.laws.discipline.SerializableTests import cats.laws.discipline.{ContravariantMonoidalTests, DeferTests, MiniInt} -import cats.laws.discipline.arbitrary._ -import cats.laws.discipline.eq._ -import cats.syntax.all._ +import cats.laws.discipline.arbitrary.* +import cats.laws.discipline.eq.* +import cats.syntax.all.* import cats.tests.Helpers.POrd -import org.scalacheck.Prop._ +import org.scalacheck.Prop.* class PartialOrderSuite extends CatsSuite { diff --git a/tests/shared/src/test/scala/cats/tests/PartialOrderingSuite.scala b/tests/shared/src/test/scala/cats/tests/PartialOrderingSuite.scala index 7b302ee958..4e005ebec9 100644 --- a/tests/shared/src/test/scala/cats/tests/PartialOrderingSuite.scala +++ b/tests/shared/src/test/scala/cats/tests/PartialOrderingSuite.scala @@ -22,9 +22,9 @@ package cats.tests import cats.{Contravariant, ContravariantMonoidal, ContravariantSemigroupal, Invariant, Semigroupal} -import cats.laws.discipline.arbitrary._ -import cats.laws.discipline._ -import cats.laws.discipline.eq._ +import cats.laws.discipline.arbitrary.* +import cats.laws.discipline.* +import cats.laws.discipline.eq.* class PartialOrderingSuite extends CatsSuite { diff --git a/tests/shared/src/test/scala/cats/tests/QueueSuite.scala b/tests/shared/src/test/scala/cats/tests/QueueSuite.scala index 40ae944294..b1e5279ad9 100644 --- a/tests/shared/src/test/scala/cats/tests/QueueSuite.scala +++ b/tests/shared/src/test/scala/cats/tests/QueueSuite.scala @@ -32,10 +32,10 @@ import cats.laws.discipline.{ TraverseFilterTests, TraverseTests } -import cats.laws.discipline.arbitrary._ -import cats.syntax.show._ +import cats.laws.discipline.arbitrary.* +import cats.syntax.show.* import scala.collection.immutable.Queue -import cats.syntax.eq._ +import cats.syntax.eq.* class QueueSuite extends CatsSuite { checkAll("Queue[Int]", SemigroupalTests[Queue].semigroupal[Int, Int, Int]) diff --git a/tests/shared/src/test/scala/cats/tests/ReducibleSuite.scala b/tests/shared/src/test/scala/cats/tests/ReducibleSuite.scala index 01dd07fd02..1afc760b9a 100644 --- a/tests/shared/src/test/scala/cats/tests/ReducibleSuite.scala +++ b/tests/shared/src/test/scala/cats/tests/ReducibleSuite.scala @@ -21,11 +21,11 @@ package cats.tests -import cats._ +import cats.* import cats.data.NonEmptyList -import cats.syntax.all._ +import cats.syntax.all.* import org.scalacheck.Arbitrary -import org.scalacheck.Prop._ +import org.scalacheck.Prop.* import scala.collection.mutable diff --git a/tests/shared/src/test/scala/cats/tests/RegressionSuite.scala b/tests/shared/src/test/scala/cats/tests/RegressionSuite.scala index b326f39c3b..0e17b8b1e3 100644 --- a/tests/shared/src/test/scala/cats/tests/RegressionSuite.scala +++ b/tests/shared/src/test/scala/cats/tests/RegressionSuite.scala @@ -21,12 +21,12 @@ package cats.tests -import cats._ +import cats.* import cats.data.Const import cats.data.NonEmptyList import cats.data.StateT -import cats.kernel.compat.scalaVersionSpecific._ -import cats.syntax.all._ +import cats.kernel.compat.scalaVersionSpecific.* +import cats.syntax.all.* import scala.collection.immutable.SortedMap import scala.collection.mutable @@ -183,7 +183,7 @@ class RegressionSuite extends CatsSuite with ScalaVersionSpecificRegressionSuite } test("#2022 EitherT syntax no long works the old way") { - import cats.data._ + import cats.data.* EitherT.right[String](Option(1)).handleErrorWith((_: String) => EitherT.pure(2)) diff --git a/tests/shared/src/test/scala/cats/tests/RepresentableStoreSuite.scala b/tests/shared/src/test/scala/cats/tests/RepresentableStoreSuite.scala index 408a67eb97..1b04be9bf5 100644 --- a/tests/shared/src/test/scala/cats/tests/RepresentableStoreSuite.scala +++ b/tests/shared/src/test/scala/cats/tests/RepresentableStoreSuite.scala @@ -25,10 +25,10 @@ import cats.Comonad import cats.data.{RepresentableStore, Store} import cats.kernel.Eq import cats.laws.discipline.{ComonadTests, SerializableTests} -import cats.laws.discipline.arbitrary._ +import cats.laws.discipline.arbitrary.* import org.scalacheck.{Arbitrary, Cogen} -import cats.syntax.eq._ -import org.scalacheck.Prop._ +import cats.syntax.eq.* +import org.scalacheck.Prop.* class RepresentableStoreSuite extends CatsSuite { diff --git a/tests/shared/src/test/scala/cats/tests/RepresentableStoreTSuite.scala b/tests/shared/src/test/scala/cats/tests/RepresentableStoreTSuite.scala index 4a40bff74a..6dd8f654aa 100644 --- a/tests/shared/src/test/scala/cats/tests/RepresentableStoreTSuite.scala +++ b/tests/shared/src/test/scala/cats/tests/RepresentableStoreTSuite.scala @@ -21,13 +21,13 @@ package cats.tests -import cats._ +import cats.* import cats.data.{StoreT, Validated} -import cats.laws.discipline._ -import cats.laws.discipline.arbitrary._ -import cats.laws.discipline.eq._ -import cats.syntax.eq._ -import org.scalacheck.Prop._ +import cats.laws.discipline.* +import cats.laws.discipline.arbitrary.* +import cats.laws.discipline.eq.* +import cats.syntax.eq.* +import org.scalacheck.Prop.* import cats.data.RepresentableStoreT import org.scalacheck.{Arbitrary, Cogen} diff --git a/tests/shared/src/test/scala/cats/tests/RepresentableSuite.scala b/tests/shared/src/test/scala/cats/tests/RepresentableSuite.scala index 13c1792aaa..ed541f5974 100644 --- a/tests/shared/src/test/scala/cats/tests/RepresentableSuite.scala +++ b/tests/shared/src/test/scala/cats/tests/RepresentableSuite.scala @@ -21,12 +21,12 @@ package cats.tests -import cats._ +import cats.* import cats.data.Kleisli import cats.kernel.Monoid import cats.laws.discipline.SemigroupalTests.Isomorphisms -import cats.laws.discipline.arbitrary._ -import cats.laws.discipline.eq._ +import cats.laws.discipline.arbitrary.* +import cats.laws.discipline.eq.* import cats.laws.discipline.{ BimonadTests, DistributiveTests, @@ -35,7 +35,7 @@ import cats.laws.discipline.{ RepresentableTests, SerializableTests } -import cats.syntax.representable._ +import cats.syntax.representable.* import org.scalacheck.Arbitrary class RepresentableSuite extends CatsSuite { diff --git a/tests/shared/src/test/scala/cats/tests/SemigroupKSuite.scala b/tests/shared/src/test/scala/cats/tests/SemigroupKSuite.scala index 3c38cb27cb..1e040e3120 100644 --- a/tests/shared/src/test/scala/cats/tests/SemigroupKSuite.scala +++ b/tests/shared/src/test/scala/cats/tests/SemigroupKSuite.scala @@ -24,7 +24,7 @@ package cats.tests import cats.{Align, Alternative, SemigroupK} import cats.data.{Chain, Validated} import cats.laws.discipline.AlignTests -import cats.laws.discipline.arbitrary._ +import cats.laws.discipline.arbitrary.* class SemigroupKSuite extends CatsSuite { implicit val listwrapperSemigroupK: Alternative[ListWrapper] = ListWrapper.alternative diff --git a/tests/shared/src/test/scala/cats/tests/SemigroupSuite.scala b/tests/shared/src/test/scala/cats/tests/SemigroupSuite.scala index 18b29eb5b0..f6ee157786 100644 --- a/tests/shared/src/test/scala/cats/tests/SemigroupSuite.scala +++ b/tests/shared/src/test/scala/cats/tests/SemigroupSuite.scala @@ -23,9 +23,9 @@ package cats.tests import cats.{Invariant, InvariantMonoidal, Semigroupal} import cats.kernel.Semigroup -import cats.syntax.eq._ +import cats.syntax.eq.* import cats.kernel.laws.discipline.SemigroupTests -import org.scalacheck.Prop._ +import org.scalacheck.Prop.* class SemigroupSuite extends CatsSuite { diff --git a/tests/shared/src/test/scala/cats/tests/SeqSuite.scala b/tests/shared/src/test/scala/cats/tests/SeqSuite.scala index 0d302fed15..19b962f3dd 100644 --- a/tests/shared/src/test/scala/cats/tests/SeqSuite.scala +++ b/tests/shared/src/test/scala/cats/tests/SeqSuite.scala @@ -35,10 +35,10 @@ import cats.laws.discipline.{ TraverseFilterTests, TraverseTests } -import cats.laws.discipline.arbitrary._ -import cats.syntax.show._ -import cats.syntax.eq._ -import org.scalacheck.Prop._ +import cats.laws.discipline.arbitrary.* +import cats.syntax.show.* +import cats.syntax.eq.* +import org.scalacheck.Prop.* import scala.collection.immutable.Seq class SeqSuite extends CatsSuite { @@ -90,8 +90,8 @@ class SeqSuite extends CatsSuite { final class SeqInstancesSuite extends munit.FunSuite { test("NonEmptyParallel instance in cats.instances.seq") { - import cats.instances.seq._ - import cats.syntax.parallel._ + import cats.instances.seq.* + import cats.syntax.parallel.* (Seq(1, 2, 3), Seq("A", "B", "C")).parTupled } diff --git a/tests/shared/src/test/scala/cats/tests/SetSuite.scala b/tests/shared/src/test/scala/cats/tests/SetSuite.scala index ae1d6fed9e..7b24eacc9a 100644 --- a/tests/shared/src/test/scala/cats/tests/SetSuite.scala +++ b/tests/shared/src/test/scala/cats/tests/SetSuite.scala @@ -25,9 +25,9 @@ import cats.{MonoidK, Show, UnorderedTraverse} import cats.data.Validated import cats.kernel.laws.discipline.MonoidTests import cats.laws.discipline.{MonoidKTests, SerializableTests, UnorderedTraverseTests} -import cats.laws.discipline.arbitrary._ -import cats.syntax.show._ -import cats.syntax.eq._ +import cats.laws.discipline.arbitrary.* +import cats.syntax.show.* +import cats.syntax.eq.* class SetSuite extends CatsSuite { checkAll("Set[Int]", MonoidTests[Set[Int]].monoid) diff --git a/tests/shared/src/test/scala/cats/tests/SortedMapSuite.scala b/tests/shared/src/test/scala/cats/tests/SortedMapSuite.scala index 39e3e0ebb4..566d575cb9 100644 --- a/tests/shared/src/test/scala/cats/tests/SortedMapSuite.scala +++ b/tests/shared/src/test/scala/cats/tests/SortedMapSuite.scala @@ -35,10 +35,10 @@ import cats.laws.discipline.{ TraverseTests } import cats.laws.discipline.SemigroupalTests.Isomorphisms -import cats.laws.discipline.arbitrary._ -import cats.syntax.show._ -import cats.syntax.eq._ -import org.scalacheck.Prop._ +import cats.laws.discipline.arbitrary.* +import cats.syntax.show.* +import cats.syntax.eq.* +import org.scalacheck.Prop.* import scala.collection.immutable.SortedMap diff --git a/tests/shared/src/test/scala/cats/tests/SortedSetSuite.scala b/tests/shared/src/test/scala/cats/tests/SortedSetSuite.scala index 18be0acf48..f2f96b02a0 100644 --- a/tests/shared/src/test/scala/cats/tests/SortedSetSuite.scala +++ b/tests/shared/src/test/scala/cats/tests/SortedSetSuite.scala @@ -25,13 +25,13 @@ import cats.{SemigroupK, Semigroupal, Show} import cats.kernel.{Order, PartialOrder} import cats.kernel.laws.discipline.{BoundedSemilatticeTests, HashTests, OrderTests, PartialOrderTests} import cats.kernel.{BoundedSemilattice, Semilattice} -import cats.laws._ +import cats.laws.* import cats.laws.discipline.SemigroupalTests.Isomorphisms -import cats.laws.discipline.arbitrary._ +import cats.laws.discipline.arbitrary.* import cats.laws.discipline.{FoldableTests, SemigroupKTests, SemigroupalTests, SerializableTests, ShortCircuitingTests} -import cats.syntax.show._ +import cats.syntax.show.* import scala.collection.immutable.SortedSet -import cats.syntax.eq._ +import cats.syntax.eq.* class SortedSetSuite extends CatsSuite { implicit val iso: Isomorphisms[SortedSet] = SortedSetIsomorphism diff --git a/tests/shared/src/test/scala/cats/tests/SplitSuite.scala b/tests/shared/src/test/scala/cats/tests/SplitSuite.scala index 3be38e0e51..81bf0ccfa8 100644 --- a/tests/shared/src/test/scala/cats/tests/SplitSuite.scala +++ b/tests/shared/src/test/scala/cats/tests/SplitSuite.scala @@ -21,7 +21,7 @@ package cats.tests -import cats.syntax.arrow._ +import cats.syntax.arrow.* class SplitSuite extends CatsSuite { test("syntax") { diff --git a/tests/shared/src/test/scala/cats/tests/StreamSuite.scala b/tests/shared/src/test/scala/cats/tests/StreamSuite.scala index 9ddb4557f9..654b9b28bc 100644 --- a/tests/shared/src/test/scala/cats/tests/StreamSuite.scala +++ b/tests/shared/src/test/scala/cats/tests/StreamSuite.scala @@ -21,12 +21,12 @@ package cats.tests -import cats._ +import cats.* import cats.data.ZipStream -import cats.laws.discipline._ -import cats.laws.discipline.arbitrary._ -import cats.syntax.all._ -import org.scalacheck.Prop._ +import cats.laws.discipline.* +import cats.laws.discipline.arbitrary.* +import cats.syntax.all.* +import org.scalacheck.Prop.* @annotation.nowarn("cat=deprecation") class StreamSuite extends CatsSuite { diff --git a/tests/shared/src/test/scala/cats/tests/SyntaxSerializationSuite.scala b/tests/shared/src/test/scala/cats/tests/SyntaxSerializationSuite.scala index 5ea5b3e4d7..97684cb277 100644 --- a/tests/shared/src/test/scala/cats/tests/SyntaxSerializationSuite.scala +++ b/tests/shared/src/test/scala/cats/tests/SyntaxSerializationSuite.scala @@ -22,7 +22,7 @@ package cats.tests import cats.laws.discipline.SerializableTests -import cats.syntax.either._ +import cats.syntax.either.* import cats.Semigroupal /** diff --git a/tests/shared/src/test/scala/cats/tests/SyntaxSuite.scala b/tests/shared/src/test/scala/cats/tests/SyntaxSuite.scala index 2f8e82e4bd..eb3be0900c 100644 --- a/tests/shared/src/test/scala/cats/tests/SyntaxSuite.scala +++ b/tests/shared/src/test/scala/cats/tests/SyntaxSuite.scala @@ -21,7 +21,7 @@ package cats.tests -import cats._ +import cats.* import cats.arrow.Compose import cats.data.{ Binested, @@ -40,7 +40,7 @@ import cats.data.{ ValidatedNel } import cats.syntax.OptionOps -import cats.syntax.all._ +import cats.syntax.all.* import scala.collection.immutable.{SortedMap, SortedSet} diff --git a/tests/shared/src/test/scala/cats/tests/TraverseFilterSuite.scala b/tests/shared/src/test/scala/cats/tests/TraverseFilterSuite.scala index 92d8131d6d..2af5e5d640 100644 --- a/tests/shared/src/test/scala/cats/tests/TraverseFilterSuite.scala +++ b/tests/shared/src/test/scala/cats/tests/TraverseFilterSuite.scala @@ -25,7 +25,7 @@ import cats.Traverse import cats.TraverseFilter import cats.data.Chain import cats.laws.discipline.arbitrary.catsLawsArbitraryForChain -import cats.syntax.all._ +import cats.syntax.all.* import org.scalacheck.Arbitrary import org.scalacheck.Prop.forAll diff --git a/tests/shared/src/test/scala/cats/tests/TraverseSuite.scala b/tests/shared/src/test/scala/cats/tests/TraverseSuite.scala index 94fffaea5e..719e42f23b 100644 --- a/tests/shared/src/test/scala/cats/tests/TraverseSuite.scala +++ b/tests/shared/src/test/scala/cats/tests/TraverseSuite.scala @@ -21,11 +21,11 @@ package cats.tests -import cats._ -import cats.kernel.compat.scalaVersionSpecific._ -import cats.syntax.all._ +import cats.* +import cats.kernel.compat.scalaVersionSpecific.* +import cats.syntax.all.* import org.scalacheck.Arbitrary -import org.scalacheck.Prop._ +import org.scalacheck.Prop.* @suppressUnusedImportWarningForScalaVersionSpecific abstract class TraverseSuite[F[_]: Traverse](name: String)(implicit ArbFInt: Arbitrary[F[Int]]) extends CatsSuite { diff --git a/tests/shared/src/test/scala/cats/tests/TrySuite.scala b/tests/shared/src/test/scala/cats/tests/TrySuite.scala index 8208cfad11..145e661f24 100644 --- a/tests/shared/src/test/scala/cats/tests/TrySuite.scala +++ b/tests/shared/src/test/scala/cats/tests/TrySuite.scala @@ -25,13 +25,13 @@ import cats.{CoflatMap, Eval, Later, Monad, MonadThrow, Semigroupal, Traverse} import cats.kernel.{Eq, Monoid, Semigroup} import cats.kernel.laws.discipline.{MonoidTests, SemigroupTests} import cats.laws.{ApplicativeLaws, CoflatMapLaws, FlatMapLaws, MonadLaws} -import cats.laws.discipline._ -import cats.laws.discipline.arbitrary._ -import cats.syntax.apply._ -import cats.syntax.show._ +import cats.laws.discipline.* +import cats.laws.discipline.arbitrary.* +import cats.syntax.apply.* +import cats.syntax.show.* import scala.util.{Success, Try} -import cats.syntax.eq._ -import org.scalacheck.Prop._ +import cats.syntax.eq.* +import org.scalacheck.Prop.* class TrySuite extends CatsSuite { implicit val eqThrow: Eq[Throwable] = Eq.allEqual diff --git a/tests/shared/src/test/scala/cats/tests/Tuple2KSuite.scala b/tests/shared/src/test/scala/cats/tests/Tuple2KSuite.scala index ac4f93a032..4cddb953c4 100644 --- a/tests/shared/src/test/scala/cats/tests/Tuple2KSuite.scala +++ b/tests/shared/src/test/scala/cats/tests/Tuple2KSuite.scala @@ -21,16 +21,16 @@ package cats.tests -import cats._ +import cats.* import cats.data.{Const, Tuple2K, Validated} import cats.kernel.laws.discipline.{EqTests, OrderTests, PartialOrderTests} import cats.laws.discipline.SemigroupalTests.Isomorphisms -import cats.laws.discipline._ -import cats.laws.discipline.arbitrary._ -import cats.laws.discipline.eq._ -import cats.syntax.eq._ +import cats.laws.discipline.* +import cats.laws.discipline.arbitrary.* +import cats.laws.discipline.eq.* +import cats.syntax.eq.* import org.scalacheck.Arbitrary -import org.scalacheck.Prop._ +import org.scalacheck.Prop.* class Tuple2KSuite extends CatsSuite { implicit val iso: Isomorphisms[Tuple2K[Option, List, *]] = Isomorphisms.invariant[Tuple2K[Option, List, *]] diff --git a/tests/shared/src/test/scala/cats/tests/TupleSuite.scala b/tests/shared/src/test/scala/cats/tests/TupleSuite.scala index 37b2981904..a491ed1a62 100644 --- a/tests/shared/src/test/scala/cats/tests/TupleSuite.scala +++ b/tests/shared/src/test/scala/cats/tests/TupleSuite.scala @@ -36,13 +36,13 @@ import cats.{ } import cats.data.NonEmptyList import cats.kernel.{Eq, Order} -import cats.laws.discipline._ -import cats.laws.discipline.arbitrary._ +import cats.laws.discipline.* +import cats.laws.discipline.arbitrary.* import cats.laws.discipline.SemigroupalTests.Isomorphisms -import cats.syntax.show._ +import cats.syntax.show.* import cats.tests.Helpers.{CMono, CSemi, Mono, Semi} -import cats.syntax.eq._ -import org.scalacheck.Prop._ +import cats.syntax.eq.* +import org.scalacheck.Prop.* class TupleSuite extends CatsSuite { diff --git a/tests/shared/src/test/scala/cats/tests/UnorderedFoldableSuite.scala b/tests/shared/src/test/scala/cats/tests/UnorderedFoldableSuite.scala index cf9593e81a..8b0fd4e904 100644 --- a/tests/shared/src/test/scala/cats/tests/UnorderedFoldableSuite.scala +++ b/tests/shared/src/test/scala/cats/tests/UnorderedFoldableSuite.scala @@ -24,10 +24,10 @@ package cats.tests import cats.UnorderedFoldable import cats.kernel.CommutativeMonoid import cats.laws.discipline.UnorderedFoldableTests -import cats.syntax.unorderedFoldable._ +import cats.syntax.unorderedFoldable.* import org.scalacheck.Arbitrary -import cats.syntax.eq._ -import org.scalacheck.Prop._ +import cats.syntax.eq.* +import org.scalacheck.Prop.* sealed abstract class UnorderedFoldableSuite[F[_]](name: String)(implicit ArbFString: Arbitrary[F[String]], diff --git a/tests/shared/src/test/scala/cats/tests/UnorderedTraverseSuite.scala b/tests/shared/src/test/scala/cats/tests/UnorderedTraverseSuite.scala index 301d3b52ae..ef46b8dc24 100644 --- a/tests/shared/src/test/scala/cats/tests/UnorderedTraverseSuite.scala +++ b/tests/shared/src/test/scala/cats/tests/UnorderedTraverseSuite.scala @@ -22,9 +22,9 @@ package cats.tests import cats.Id -import cats.syntax.unorderedTraverse._ -import cats.syntax.eq._ -import org.scalacheck.Prop._ +import cats.syntax.unorderedTraverse.* +import cats.syntax.eq.* +import org.scalacheck.Prop.* class UnorderedTraverseSuite extends CatsSuite { test("UnorderedTraverse[Set[Int]].unorderedTraverse via syntax") { diff --git a/tests/shared/src/test/scala/cats/tests/ValidatedSuite.scala b/tests/shared/src/test/scala/cats/tests/ValidatedSuite.scala index 4283b38c0c..b8d02e1632 100644 --- a/tests/shared/src/test/scala/cats/tests/ValidatedSuite.scala +++ b/tests/shared/src/test/scala/cats/tests/ValidatedSuite.scala @@ -36,17 +36,17 @@ import cats.data.{EitherT, Ior, NonEmptyChain, NonEmptyList, Validated, Validate import cats.data.Validated.{Invalid, Valid} import cats.kernel.{Eq, Order, PartialOrder, Semigroup} import cats.kernel.laws.discipline.{EqTests, MonoidTests, OrderTests, PartialOrderTests, SemigroupTests} -import cats.laws.discipline._ +import cats.laws.discipline.* import cats.laws.discipline.SemigroupKTests import cats.laws.discipline.SemigroupalTests.Isomorphisms -import cats.laws.discipline.arbitrary._ -import cats.syntax.apply._ -import cats.syntax.either._ -import cats.syntax.validated._ -import org.scalacheck.Arbitrary._ +import cats.laws.discipline.arbitrary.* +import cats.syntax.apply.* +import cats.syntax.either.* +import cats.syntax.validated.* +import org.scalacheck.Arbitrary.* import scala.util.Try -import cats.syntax.eq._ -import org.scalacheck.Prop._ +import cats.syntax.eq.* +import org.scalacheck.Prop.* class ValidatedSuite extends CatsSuite { implicit val iso: Isomorphisms[Validated[String, *]] = Isomorphisms.invariant[Validated[String, *]] diff --git a/tests/shared/src/test/scala/cats/tests/VarianceSuite.scala b/tests/shared/src/test/scala/cats/tests/VarianceSuite.scala index e06aec55b9..92f4392d53 100644 --- a/tests/shared/src/test/scala/cats/tests/VarianceSuite.scala +++ b/tests/shared/src/test/scala/cats/tests/VarianceSuite.scala @@ -22,8 +22,8 @@ package cats.tests import cats.arrow.Profunctor -import cats.conversions.all._ -import cats.syntax.all._ +import cats.conversions.all.* +import cats.syntax.all.* import cats.{Bifunctor, Contravariant, Functor} class VarianceSuite extends CatsSuite { diff --git a/tests/shared/src/test/scala/cats/tests/VectorSuite.scala b/tests/shared/src/test/scala/cats/tests/VectorSuite.scala index 4777dab5b1..e4f98a60a8 100644 --- a/tests/shared/src/test/scala/cats/tests/VectorSuite.scala +++ b/tests/shared/src/test/scala/cats/tests/VectorSuite.scala @@ -35,11 +35,11 @@ import cats.laws.discipline.{ TraverseFilterTests, TraverseTests } -import cats.laws.discipline.arbitrary._ -import cats.syntax.show._ -import cats.syntax.vector._ -import cats.syntax.eq._ -import org.scalacheck.Prop._ +import cats.laws.discipline.arbitrary.* +import cats.syntax.show.* +import cats.syntax.vector.* +import cats.syntax.eq.* +import org.scalacheck.Prop.* class VectorSuite extends CatsSuite { checkAll("Vector[Int]", SemigroupalTests[Vector].semigroupal[Int, Int, Int]) @@ -128,8 +128,8 @@ class VectorSuite extends CatsSuite { final class VectorInstancesSuite extends munit.FunSuite { test("NonEmptyParallel instance in cats.instances.vector") { - import cats.instances.vector._ - import cats.syntax.parallel._ + import cats.instances.vector.* + import cats.syntax.parallel.* (Vector(1, 2, 3), Vector("A", "B", "C")).parTupled } diff --git a/tests/shared/src/test/scala/cats/tests/WordCountSuite.scala b/tests/shared/src/test/scala/cats/tests/WordCountSuite.scala index 049604dd54..c9d1c23a60 100644 --- a/tests/shared/src/test/scala/cats/tests/WordCountSuite.scala +++ b/tests/shared/src/test/scala/cats/tests/WordCountSuite.scala @@ -23,7 +23,7 @@ package cats.tests import cats.data.{AppFunc, Const} import cats.data.Func.appFunc -import cats.syntax.eq._ +import cats.syntax.eq.* /* * This an example of applicative function composition. diff --git a/tests/shared/src/test/scala/cats/tests/WriterSuite.scala b/tests/shared/src/test/scala/cats/tests/WriterSuite.scala index 0fbb3ec426..b75d7396ae 100644 --- a/tests/shared/src/test/scala/cats/tests/WriterSuite.scala +++ b/tests/shared/src/test/scala/cats/tests/WriterSuite.scala @@ -22,10 +22,10 @@ package cats.tests import cats.data.Writer -import cats.syntax.applicative._ -import cats.syntax.writer._ -import cats.syntax.eq._ -import org.scalacheck.Prop._ +import cats.syntax.applicative.* +import cats.syntax.writer.* +import cats.syntax.eq.* +import org.scalacheck.Prop.* class WriterSuite extends CatsSuite { test("pure syntax creates a writer with an empty log") { diff --git a/tests/shared/src/test/scala/cats/tests/WriterTSuite.scala b/tests/shared/src/test/scala/cats/tests/WriterTSuite.scala index 535d77c747..6e0a797aeb 100644 --- a/tests/shared/src/test/scala/cats/tests/WriterTSuite.scala +++ b/tests/shared/src/test/scala/cats/tests/WriterTSuite.scala @@ -21,16 +21,16 @@ package cats.tests -import cats._ +import cats.* import cats.data.{Const, EitherT, Validated, Writer, WriterT} import cats.kernel.laws.discipline.{EqTests, MonoidTests, SemigroupTests} -import cats.laws.discipline._ +import cats.laws.discipline.* import cats.laws.discipline.SemigroupalTests.Isomorphisms -import cats.laws.discipline.arbitrary._ -import cats.laws.discipline.eq._ -import cats.syntax.option._ -import cats.syntax.eq._ -import org.scalacheck.Prop._ +import cats.laws.discipline.arbitrary.* +import cats.laws.discipline.eq.* +import cats.syntax.option.* +import cats.syntax.eq.* +import org.scalacheck.Prop.* import org.scalacheck.Test.Parameters import cats.kernel.laws.discipline.OrderTests From a7e12e0cab8fdffa1379a4566bdc797ad36dccad Mon Sep 17 00:00:00 2001 From: satorg Date: Fri, 15 Nov 2024 20:29:53 -0800 Subject: [PATCH 3/3] re-enable "-Xsource:3" --- build.sbt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build.sbt b/build.sbt index 8dfba21b7e..73cd0e81ce 100644 --- a/build.sbt +++ b/build.sbt @@ -142,7 +142,7 @@ lazy val algebra = crossProject(JSPlatform, JVMPlatform, NativePlatform) .crossType(CrossType.Pure) .in(file("algebra-core")) .dependsOn(kernel) - .settings(moduleName := "algebra", name := "Cats algebra", scalacOptions -= "-Xsource:3") + .settings(moduleName := "algebra", name := "Cats algebra") .settings(Compile / sourceGenerators += (Compile / sourceManaged).map(AlgebraBoilerplate.gen).taskValue) .jsSettings(commonJsSettings) .jvmSettings(commonJvmSettings) @@ -157,7 +157,7 @@ lazy val algebra = crossProject(JSPlatform, JVMPlatform, NativePlatform) lazy val algebraLaws = crossProject(JSPlatform, JVMPlatform, NativePlatform) .in(file("algebra-laws")) .dependsOn(kernelLaws, algebra) - .settings(moduleName := "algebra-laws", name := "Cats algebra laws", scalacOptions -= "-Xsource:3") + .settings(moduleName := "algebra-laws", name := "Cats algebra laws") .settings(disciplineDependencies) .settings(testingDependencies) .jsSettings(commonJsSettings)