Skip to content

Commit

Permalink
Merge pull request #35 from Kevin-Lee/prepare-to-release-v0.2.0
Browse files Browse the repository at this point in the history
Effectie v0.2.0
  • Loading branch information
kevin-lee committed Apr 7, 2020
2 parents c72662e + d09cdb4 commit 64a2815
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 11 deletions.
4 changes: 4 additions & 0 deletions changelogs/0.2.0.md
@@ -0,0 +1,4 @@
## [0.2.0](https://github.com/Kevin-Lee/effectie/issues?utf8=%E2%9C%93&q=is%3Aissue+is%3Aclosed+milestone%3A%22milestone2%22) - 2020-04-07

## Done
* Change `effectOfPure` to `effectOfPure` (#33)
8 changes: 4 additions & 4 deletions docs/docs/docs/cats-effect/index.md
Expand Up @@ -45,16 +45,16 @@ object Something {
override def foo[A : Semigroup](a: A): F[A] =
for {
n <- effectOf(a)
blah <- pureEffect("blah blah")
blah <- effectOfPure("blah blah")
_ <- effectOf(println(s"n: $n / BLAH: $blah"))
x <- effectOf(n |+| n)
_ <- putStrLn(s"x: $x")
} yield x

override def bar[A : Semigroup](a: Option[A]): F[Option[A]] =
(for {
a <- optionTPureEffect(a)
blah <- optionTPureEffect("blah blah".some)
a <- optionTEffectOfPure(a)
blah <- optionTEffectOfPure("blah blah".some)
_ <- optionTLiftEffect(println(s"a: $a / BLAH: $blah"))
x <- optionTLiftF(effectOf(a |+| a))
_ <- optionTLiftF(putStrLn(s"x: $x"))
Expand All @@ -63,7 +63,7 @@ object Something {
override def baz[A, B : Semigroup](ab: Either[A, B]): F[Either[A, B]] =
(for {
b <- eitherTEffect(ab)
blah <- eitherTPureEffect("blah blah".asRight[A])
blah <- eitherTEffectOfPure("blah blah".asRight[A])
_ <- eitherTLiftEffect(println(s"b: $b / BLAH: $blah"))
x <- eitherTLiftF(effectOf(b |+| b))
_ <- eitherTLiftF[F, A, Unit](putStrLn(s"x: $x"))
Expand Down
4 changes: 2 additions & 2 deletions docs/docs/docs/index.md
Expand Up @@ -14,7 +14,7 @@ Why Effectie? Please read ["Why?"](#why) section.
In `build.sbt`,

```scala
libraryDependencies += "io.kevinlee" %% "effectie-cats-effect" % "0.1.0"
libraryDependencies += "io.kevinlee" %% "effectie-cats-effect" % "0.2.0"
```
then import

Expand All @@ -35,7 +35,7 @@ For more details, check out [Effectie for Cats Effect](cats-effect).
In `build.sbt`,

```scala
libraryDependencies += "io.kevinlee" %% "effectie-scalaz-effect" % "0.1.0"
libraryDependencies += "io.kevinlee" %% "effectie-scalaz-effect" % "0.2.0"
```
then import

Expand Down
8 changes: 4 additions & 4 deletions docs/docs/docs/scalaz-effect/index.md
Expand Up @@ -44,16 +44,16 @@ object Something {
override def foo[A : Semigroup](a: A): F[A] =
for {
n <- effectOf(a)
blah <- pureEffect("blah blah")
blah <- effectOfPure("blah blah")
_ <- effectOf(println(s"n: $n / BLAH: $blah"))
x <- effectOf(n |+| n)
_ <- putStrLn(s"x: $x")
} yield x

override def bar[A : Semigroup](a: Option[A]): F[Option[A]] =
(for {
a <- optionTPureEffect(a)
blah <- optionTPureEffect("blah blah".some)
a <- optionTEffectOfPure(a)
blah <- optionTEffectOfPure("blah blah".some)
_ <- optionTLiftEffect(println(s"a: $a / BLAH: $blah"))
x <- optionTLiftF(effectOf(a |+| a))
_ <- optionTLiftF(putStrLn(s"x: $x"))
Expand All @@ -62,7 +62,7 @@ object Something {
override def baz[A, B : Semigroup](ab: A \/ B): F[A \/ B] =
(for {
b <- eitherTEffect(ab)
blah <- eitherTPureEffect("blah blah".right[A])
blah <- eitherTEffectOfPure("blah blah".right[A])
_ <- eitherTLiftEffect(println(s"b: $b / BLAH: $blah"))
x <- eitherTLiftF[F, A, B](effectOf(b |+| b))
_ <- eitherTLiftF(putStrLn(s"x: $x"))
Expand Down
2 changes: 1 addition & 1 deletion project/ProjectInfo.scala
Expand Up @@ -3,7 +3,7 @@ import wartremover.WartRemover.autoImport.{Wart, Warts}
object ProjectInfo {
final case class ProjectName(projectName: String) extends AnyVal

val ProjectVersion: String = "0.1.0"
val ProjectVersion: String = "0.2.0"

def commonWarts(scalaBinaryVersion: String): Seq[wartremover.Wart] = scalaBinaryVersion match {
case "2.10" =>
Expand Down

0 comments on commit 64a2815

Please sign in to comment.