diff --git a/.scalafmt.conf b/.scalafmt.conf index 9759510..b627e6d 100644 --- a/.scalafmt.conf +++ b/.scalafmt.conf @@ -1,4 +1,4 @@ -version=2.4.2 +version=2.5.3 style = defaultWithAlign maxColumn = 100 diff --git a/src/main/scala/catslib/CatsLibrary.scala b/src/main/scala/catslib/CatsLibrary.scala index c222b2b..d985d0d 100644 --- a/src/main/scala/catslib/CatsLibrary.scala +++ b/src/main/scala/catslib/CatsLibrary.scala @@ -26,20 +26,21 @@ object CatsLibrary extends org.scalaexercises.definitions.Library { override def color = Some("#5B5988") - override def sections = List( - SemigroupSection, - MonoidSection, - FunctorSection, - ApplySection, - ApplicativeSection, - MonadSection, - FoldableSection, - TraverseSection, - IdentitySection, - EitherSection, - ValidatedSection, - EvalSection - ) + override def sections = + List( + SemigroupSection, + MonoidSection, + FunctorSection, + ApplySection, + ApplicativeSection, + MonadSection, + FoldableSection, + TraverseSection, + IdentitySection, + EitherSection, + ValidatedSection, + EvalSection + ) override def logoPath = "cats" } diff --git a/src/main/scala/catslib/Monad.scala b/src/main/scala/catslib/Monad.scala index 81f6013..cbcebdc 100644 --- a/src/main/scala/catslib/Monad.scala +++ b/src/main/scala/catslib/Monad.scala @@ -149,11 +149,12 @@ object MonadSection extends AnyFlatSpec with Matchers with org.scalaexercises.de optionTMonad[List].pure(42) should be(OptionT(res0)) } + /** There are also instances for other monads available for user in Cats library: - * 'EitherT' for 'Either' - * 'ReaderT' for 'Reader' - * 'WriterT' for 'Writer' - * 'StateT' for 'State' - * 'IdT' for 'Id' - */ + * 'EitherT' for 'Either' + * 'ReaderT' for 'Reader' + * 'WriterT' for 'Writer' + * 'StateT' for 'State' + * 'IdT' for 'Id' + */ }