smelly_2.13

Cats IO and ZIO bi-conversions

License

License

MIT
GroupId

GroupId

com.github.jacke
ArtifactId

ArtifactId

smelly_2.13
Last Version

Last Version

0.0.10
Release Date

Release Date

Type

Type

jar
Description

Description

smelly_2.13
Cats IO and ZIO bi-conversions
Project URL

Project URL

https://github.com/jacke/smelly-ops
Source Code Management

Source Code Management

https://github.com/jacke/smelly-ops

Download smelly_2.13

How to add to project

<!-- https://jarcasting.com/artifacts/com.github.jacke/smelly_2.13/ -->
<dependency>
    <groupId>com.github.jacke</groupId>
    <artifactId>smelly_2.13</artifactId>
    <version>0.0.10</version>
</dependency>
// https://jarcasting.com/artifacts/com.github.jacke/smelly_2.13/
implementation 'com.github.jacke:smelly_2.13:0.0.10'
// https://jarcasting.com/artifacts/com.github.jacke/smelly_2.13/
implementation ("com.github.jacke:smelly_2.13:0.0.10")
'com.github.jacke:smelly_2.13:jar:0.0.10'
<dependency org="com.github.jacke" name="smelly_2.13" rev="0.0.10">
  <artifact name="smelly_2.13" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.github.jacke', module='smelly_2.13', version='0.0.10')
)
libraryDependencies += "com.github.jacke" % "smelly_2.13" % "0.0.10"
[com.github.jacke/smelly_2.13 "0.0.10"]

Dependencies

compile (10)

Group / Artifact Type Version
org.specs2 : specs2-core_2.13 jar 4.9.4
org.scalatest : scalatest_2.13 jar 3.1.2
io.7mind.izumi : distage-core_2.13 jar 0.10.10
dev.zio : zio-interop-cats_2.13 jar 2.1.3.0-RC15
com.ironcorelabs : cats-scalatest_2.13 jar 3.0.5
org.typelevel : cats-effect_2.13 jar 2.1.3
org.typelevel : cats-core_2.13 jar 2.1.1
dev.zio : zio_2.13 jar 1.0.0-RC20
dev.zio : zio-config_2.13 jar 1.0.0-RC20
dev.zio : zio-config-typesafe_2.13 jar 1.0.0-RC20

Project Modules

There are no modules declared in this project.

smelly-ops

Cats & ZIO ops made implicitly

Add toZIO[Env] and toCatsEffect to cats.effect.IO/zio.ZIO instances where Env could be ZEnv, Any, ...

  implicit val R: zio.Runtime[zio.ZEnv] = zio.Runtime.default
  val CIOE: cats.effect.IO[Int] = cats.effect.IO(1*100)

  import SmellyOps._
  // convert IO to ZIO[Zenv] to IO to ZIO[Any] to IO and run in
  CIOE.toZIO[ZEnv].toCatsEffect.toZIO[Any].toCatsEffect.unsafeRunSync shouldBe 100

Install

    libraryDependencies ++= Seq(
      "com.github.jacke" %% "smelly" %  "0.0.10",
    )

Versions

Version
0.0.10
0.0.4
0.0.3
0.0.2