Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
effectie v2.0.0-beta10
2.0.0-beta10 - 2023-07-15
New Feature
Add
fromEffect(fa: => F[A]): F[A]
toFxCtor
andFx
(AddfromEffect(fa: => F[A]): F[A]
toFxCtor
andFx
#524)Add
make[A](fa: => F[A])(release: A => F[Unit]): ReleasableResource[F, A]
toResourceMaker[F[*]]
(Addmake[A](fa: => F[A])(release: A => F[Unit]): ReleasableResource[F, A]
toResourceMaker[F[*]]
#527)Try
Future
Cats Effect 2
Cats Effect 3
Add
pure[A](a: A)
andeval[A](fa: F[A])
toResourceMaker
(Addpure[A](a: A)
andeval[A](fa: F[A])
toResourceMaker
#534)Add
ReleasableResource.pure
(AddReleasableResource.pure
#542)So
A
doesn't have to beAutoCloseable
as it's just a pure value.Add
ReleasableResource.map
andReleasableResource.flatMap
(AddReleasableResource.map
andReleasableResource.flatMap
#544)Add
Functor
type-class forReleasableResource
(AddFunctor
type-class forReleasableResource
#548)Add
Applicative
type-class forReleasableResource
(AddApplicative
type-class forReleasableResource
#550)Changes
Remove unnecessary re-evaluation of
ResourceMaker
(Remove unnecessary re-evaluation ofResourceMaker
#529)The following
ResourceMaker
constructor method is justval
now.effectie.resource.ResourceMaker.usingResourceMaker
Rename
withResource
inCe2ResourceMaker
andCe3ResourceMaker
tomaker
(RenamewithResource
inCe2ResourceMaker
andCe3ResourceMaker
tomaker
#530)Move
ResourceMaker
andReleasableResource
toeffectie-cats
(MoveResourceMaker
andReleasableResource
toeffectie-cats
#546)Having
ReleasableResource
ineffectie-cats
is required to haveFunctor
andMonad
type-classes.