Skip to content

Commit ab86c72

Browse files
committed
Update scalafmt-core to 2.5.3
1 parent 657a077 commit ab86c72

File tree

3 files changed

+23
-21
lines changed

3 files changed

+23
-21
lines changed

.scalafmt.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version=2.4.2
1+
version=2.5.3
22
style = defaultWithAlign
33
maxColumn = 100
44

src/main/scala/catslib/CatsLibrary.scala

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -26,20 +26,21 @@ object CatsLibrary extends org.scalaexercises.definitions.Library {
2626

2727
override def color = Some("#5B5988")
2828

29-
override def sections = List(
30-
SemigroupSection,
31-
MonoidSection,
32-
FunctorSection,
33-
ApplySection,
34-
ApplicativeSection,
35-
MonadSection,
36-
FoldableSection,
37-
TraverseSection,
38-
IdentitySection,
39-
EitherSection,
40-
ValidatedSection,
41-
EvalSection
42-
)
29+
override def sections =
30+
List(
31+
SemigroupSection,
32+
MonoidSection,
33+
FunctorSection,
34+
ApplySection,
35+
ApplicativeSection,
36+
MonadSection,
37+
FoldableSection,
38+
TraverseSection,
39+
IdentitySection,
40+
EitherSection,
41+
ValidatedSection,
42+
EvalSection
43+
)
4344

4445
override def logoPath = "cats"
4546
}

src/main/scala/catslib/Monad.scala

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -149,11 +149,12 @@ object MonadSection extends AnyFlatSpec with Matchers with org.scalaexercises.de
149149

150150
optionTMonad[List].pure(42) should be(OptionT(res0))
151151
}
152+
152153
/** There are also instances for other monads available for user in Cats library:
153-
* 'EitherT' for 'Either'
154-
* 'ReaderT' for 'Reader'
155-
* 'WriterT' for 'Writer'
156-
* 'StateT' for 'State'
157-
* 'IdT' for 'Id'
158-
*/
154+
* 'EitherT' for 'Either'
155+
* 'ReaderT' for 'Reader'
156+
* 'WriterT' for 'Writer'
157+
* 'StateT' for 'State'
158+
* 'IdT' for 'Id'
159+
*/
159160
}

0 commit comments

Comments
 (0)