From d70f293805fbd93358d7ec8308fb26164dba4498 Mon Sep 17 00:00:00 2001 From: Kevin Lee Date: Mon, 13 Mar 2023 02:58:25 +1100 Subject: [PATCH] extras v0.37.0 --- changelogs/0.37.0.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 changelogs/0.37.0.md diff --git a/changelogs/0.37.0.md b/changelogs/0.37.0.md new file mode 100644 index 00000000..1c26d922 --- /dev/null +++ b/changelogs/0.37.0.md @@ -0,0 +1,21 @@ +## [0.37.0](https://github.com/Kevin-Lee/extras/issues?utf8=%E2%9C%93&q=is%3Aissue+is%3Aclosed+-label%3Ainvalid+milestone%3Amilestone38) - 2023-03-13 + +## Changes +* [`extras-cats`] Fix `innerFold` and `innerFoldF` for `F[Either[A, B]]` to have the same method signature as `Either`'s (#368) + * `innerFold` + ```scala + def innerFold[D](ifLeft: => D)(f: B => D)(implicit F: Functor[F]): F[D] + ``` + to + ```scala + def innerFold[D](forLeft: A => D)(forRight: B => D)(implicit F: Functor[F]): F[D] + ``` + + * `innerFoldF` + ```scala + def innerFoldF[D](ifLeft: => F[D])(f: B => F[D])(implicit F: FlatMap[F]): F[D] + ``` + to + ```scala + def innerFoldF[D](forLeft: A => F[D])(forRight: B => F[D])(implicit F: FlatMap[F]): F[D] + ```