pureharm / pureharm-effects-cats   0.5.0

Apache License 2.0 GitHub

cats + cats-effect + fs2 modules of "pureharm"

Scala versions: 3.x 2.13
Scala.js versions: 1.x

pureharm-effects-cats

See changelog.

modules

Scala versions

Scala 2.13, 3.0.1, for JVM and JS.

The available modules are:

usage

Under construction. See release notes and tests for examples.

The recommended way of making use of this module is to create your own "effects" package giving you seemless pure-functional scala experience without import confusion. It's for developers who realized that you can't really write any production apps without treating cats, cats-effect, fs2 as being standard library.

package myapp

import busymachines.pureharm

package object effects extends pureharm.effects.PureharmEffectsAliases with pureharm.effects.PureharmEffectsSyntax {
  //write your own custom opiniated things here!
}

//everywhere else in your code just do:
import myapp.effects._

//instead of:
import cats._
import cats.syntax.all._
import cats.effect._
import cats.effect.syntax.all._
import cats.effect.std._
import cats.effect.std.syntax.all._
import fs2._
import retry._
import retry.syntax.all._

Copyright and License

All code is available to you under the Apache 2.0 license, available at http://www.apache.org/licenses/LICENSE-2.0 and also in the LICENSE file.