pureharm-effects-cats
See changelog.
modules
Scala versions
Scala 2.13
, 3.0.1
, for JVM and JS.
The available modules are:
"com.busymachines" %% "pureharm-effects-cats" % "0.5.0"
- in future versions this will be the only module. N.B. that this module is mutually exclusive with the one below, the latter existing for migration purposes towards cats-effect 3
- cats
2.6.1
- cats-effect
3.2.1
- cats-retry
3.0.0
— currently inlined into pureharm, and made available in the standard namespace w/ syntax - fs2-core
3.0.6
- pureharm-core-anomaly
0.3.0
- pureharm-core-sprout
0.3.0
"com.busymachines" %% "pureharm-effects-cats-2" % "0.5.0"
- cats
2.6.1
- cats-effect
2.5.2
- fs2-core
2.5.9
- cats-retry
3.0.0
— currently inlined into pureharm, and made available in the standard namespace w/ syntax - pureharm-core-anomaly
0.3.0
- pureharm-core-sprout
0.3.0
- cats
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.