Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MonadWriter #210

Merged
merged 10 commits into from
Aug 17, 2017
Merged

MonadWriter #210

merged 10 commits into from
Aug 17, 2017

Conversation

JorgeCastilloPrz
Copy link
Member

@JorgeCastilloPrz JorgeCastilloPrz commented Aug 17, 2017

Fixes #163

Disclaimer: MonadWriter was moved to FunctorListen inside cats-mtl module. The reason to keep implementing MonadWriter here is that I think we should definitely keep "old" constructs (the one valids until cats pre-1.0.0) for the time being, until we have a first release. I would iterate towards kategory-mtl module with the same renaming / refactor iterations applied to cats probably after release, to avoid more noise.

@raulraja raulraja mentioned this pull request Aug 17, 2017
54 tasks
Copy link
Member

@raulraja raulraja left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent!, left a minor comment about getting rid of the intermediate interface to be consistent with all other implementations.

@@ -27,6 +27,8 @@ interface WriterTInstances<F, W> :

}

interface WriterTMonadWriter<F, W> : MonadWriter<WriterTKindPartial<F, W>, W>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since this does not imposes new constrains I think it's fine to implement inline to be consistent how Functor, Applicative and Monad are implemented and there would be no need for the extra interface WriterTMonadWriter

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed 👍

@codecov-io
Copy link

Codecov Report

❗ No coverage uploaded for pull request base (master@016fbce). Click here to learn what that means.
The diff coverage is 10%.

Impacted file tree graph

@@           Coverage Diff           @@
##             master   #210   +/-   ##
=======================================
  Coverage          ?    52%           
  Complexity        ?    200           
=======================================
  Files             ?     98           
  Lines             ?   2123           
  Branches          ?    261           
=======================================
  Hits              ?   1104           
  Misses            ?    911           
  Partials          ?    108
Impacted Files Coverage Δ Complexity Δ
...main/kotlin/kategory/instances/WriterTInstances.kt 90.9% <ø> (ø) 0 <0> (?)
...rc/main/kotlin/kategory/typeclasses/MonadWriter.kt 0% <0%> (ø) 0 <0> (?)
kategory/src/main/kotlin/kategory/data/WriterT.kt 26.82% <0%> (ø) 7 <0> (?)
.../src/main/kotlin/kategory/generators/Generators.kt 66.66% <100%> (ø) 0 <0> (?)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 016fbce...c0ff2b8. Read the comment docs.

@JorgeCastilloPrz JorgeCastilloPrz merged commit 88446ce into master Aug 17, 2017
@JorgeCastilloPrz JorgeCastilloPrz deleted the jorge-monadwriter branch August 17, 2017 14:04
rachelcarmena added a commit that referenced this pull request Feb 24, 2021
Co-authored-by: Jorge Castillo <[email protected]>
Co-authored-by: Rachel M. Carmena <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants