Skip to content

Commit

Permalink
Merge pull request #508 from Kevin-Lee/prepare-to-release
Browse files Browse the repository at this point in the history
effectie v2.0.0-beta8
  • Loading branch information
kevin-lee authored Mar 7, 2023
2 parents fb7c4f7 + 8a126f6 commit 856f445
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 1 deletion.
45 changes: 45 additions & 0 deletions changelogs/2.0.0-beta8.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
## [2.0.0-beta8](https://github.com/Kevin-Lee/effectie/issues?q=is%3Aissue+is%3Aclosed+milestone%3Av2-m1+closed%3A2023-02-26..2023-03-07) - 2023-03-07

### Changes

* Remove unused implicit params (#497)
```scala
def catchNonFatal[A](
f: PartialFunction[Throwable, A]
)(
implicit canCatch: CanCatch[F],
fxCtor: FxCtor[F], // <= This is unused
): F[Either[A, B]] =
canCatch.catchNonFatal[A, B](fb())(f)
```
The `implicit` param `fxCtor: FxCtor[F]` has been removed.
* Rename `ConsoleEffect` to `ConsoleFx` (#499)
* Move `flatMapFa` from `CanCatch` to `FxCtor` (#501)
```scala
def flatMapFa[A, B](fa: F[A])(f: A => F[B]): F[B]
```
* Move `FxCtor` from instance creation of `ConsoleFx` to each `ConsoleFx` method param (#504)
```scala
implicit def consoleFxF[F[*]: FxCtor: FlatMap]: ConsoleFx[F] = ...
```
to
```scala
trait ConsoleFx[F[*]] {
def readLn(implicit fxCtor: FxCtor[F]): F[String]

def readPassword(implicit fxCtor: FxCtor[F]): F[Array[Char]]

def putStr(value: String)(implicit fxCtor: FxCtor[F]): F[Unit]

def putStrLn(value: String)(implicit fxCtor: FxCtor[F]): F[Unit]

def putErrStr(value: String)(implicit fxCtor: FxCtor[F]): F[Unit]

def putErrStrLn(value: String)(implicit fxCtor: FxCtor[F]): F[Unit]

def readYesNo(prompt: String)(implicit fxCtor: FxCtor[F]): F[YesNo]
}
```
* `ConsoleFx` instance should not depend on cats (`Monad`) (#505)

Instead, it depends on `FxCtor` now.
2 changes: 1 addition & 1 deletion version.sbt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
ThisBuild / version := "2.0.0-SNAPSHOT"
ThisBuild / version := "2.0.0-beta8"

0 comments on commit 856f445

Please sign in to comment.