scalaz EFF-3.0.0
Pre-release
Pre-release
etorreborre
released this
26 Feb 07:44
·
1010 commits
to master
since this release
New and improved!
This version contains some breaking changes, most notably around the Async
effect which is removed (details in #46).
Most improvements have been contributed by @edmundnoble and @benhutchison.
Improvements
Breaking changes:
- removed the
Async
effect and repackaged the syntax implicits for the various task/future effects. Now you
need to specify whichTaskEffect
(with implementations forscalaz
,monix
,fs2
) orFutureEffect
you want to use - added a method to update the read value of a Reader effect #60. Three methods
are now available:translateReader
to interpret aReader[A, ?]
effect into anotherReader[B, ?]
effect in the stackzoomReader
to replace aReader[A, ?]
effect withReader[B, ?]
in the same stacklocalReader
to modify the read valueA
in theReader[A, ?]
effect
- similarly we have
translateEither
,zoomEither
andlocalEither
for theEitherEffect
- the implementation of effect coproducts (
Union
of effects) has been simplified with the introduction of
aUnionTagged
class for better performance #59 - it is possible to specify the target stack type with the
.runEither[U]
method #50
Non-breaking changes:
- implement
detach
in terms ofdetachA
#62 - promote
Rand
Alternative
instance toMonadPlus
#63 - added a cookbook section on how to prepend effects "locally" #64
- added
interceptNatM
to modify a given effectT[_]
toT[F[_]]
whereF
is a traversable monad #57 - make
Unions
useVector
instead ofList
for asymptotic reasons #58 - added the possibility to memoize
Safe
effects #54 - updated the try-eff script #51