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

Add a Binested data type #2259

Merged
merged 2 commits into from
May 29, 2018
Merged

Add a Binested data type #2259

merged 2 commits into from
May 29, 2018

Conversation

iravid
Copy link
Contributor

@iravid iravid commented May 18, 2018

Resolves #2263.

@kailuowang
Copy link
Contributor

Looks useful to me 👍

@LukaJCB
Copy link
Member

LukaJCB commented May 18, 2018

I like it too, thanks very much! :)

@codecov-io
Copy link

codecov-io commented May 19, 2018

Codecov Report

Merging #2259 into master will increase coverage by 0.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2259      +/-   ##
==========================================
+ Coverage   94.96%   94.98%   +0.01%     
==========================================
  Files         334      336       +2     
  Lines        5805     5822      +17     
  Branches      218      211       -7     
==========================================
+ Hits         5513     5530      +17     
  Misses        292      292
Impacted Files Coverage Δ
...rc/main/scala/cats/laws/discipline/Arbitrary.scala 100% <100%> (ø) ⬆️
core/src/main/scala/cats/syntax/binested.scala 100% <100%> (ø)
core/src/main/scala/cats/data/Binested.scala 100% <100%> (ø)

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 abd54ff...812cf33. Read the comment docs.

LukaJCB
LukaJCB previously approved these changes May 19, 2018
@iravid
Copy link
Contributor Author

iravid commented May 21, 2018

Added Bifoldable and Bitraverse instances along with .binested syntax in the spirit of @danielkarch's #2262. I mixed AllSyntaxBinCompat into SyntaxSuite to test the bincompat syntax.

I think this is good to merge if all tests pass.

@iravid iravid changed the title Binested sketch Add a Binested data type May 21, 2018
}

trait BinestedInstances0 {
implicit def catsDataBitraverseForBinested[F[_, _], G[_], H[_]](
Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Right, thanks

@@ -58,5 +58,6 @@ trait AllSyntaxBinCompat0
extends UnorderedTraverseSyntax
with ApplicativeErrorExtension
with TrySyntax
with BinestedSyntax
Copy link
Contributor

@kailuowang kailuowang May 21, 2018

Choose a reason for hiding this comment

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

hmmm, this might break bin compat with 1.1.0.
Would you mind also change the bin compat version here to 1.1.0? That should capture this error.

Update: I submitted the PR to do that #2264

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah cool. I'll rebase on that.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I see that sticking it on AllSyntaxBinCompat1 is fine. Will change to that...

@iravid
Copy link
Contributor Author

iravid commented May 21, 2018

fingers crossed for the MiMa gods

@kailuowang
Copy link
Contributor

oops, sorry, I squashed merged the other PR. Would you reset this branch to master and cherry pick your commit
git cherry-pick e9f80d988222efec9b7fce11d7acee3727e93333

@iravid
Copy link
Contributor Author

iravid commented May 22, 2018

Yeah no worries.

@iravid
Copy link
Contributor Author

iravid commented May 22, 2018

Rebased and resolved conflicts

@iravid
Copy link
Contributor Author

iravid commented May 23, 2018

Travis failed 2 builds due to memory limits. Restarted the build...

kailuowang
kailuowang previously approved these changes May 23, 2018
LukaJCB
LukaJCB previously approved these changes May 23, 2018
@kailuowang kailuowang dismissed stale reviews from LukaJCB and themself via 812cf33 May 24, 2018 14:00
@kailuowang kailuowang merged commit d4bc349 into typelevel:master May 29, 2018
@kailuowang kailuowang added this to the 1.2 milestone May 30, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants