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 XorT.toValidatedNel #1188

Merged
merged 1 commit into from
Jul 13, 2016
Merged

Conversation

markus1189
Copy link
Contributor

Currently there is only .toValidated, but I frequently need toValidatedNel as well, so here it is ;)

@@ -157,6 +157,9 @@ final case class XorT[F[_], A, B](value: F[A Xor B]) {
def toValidated(implicit F: Functor[F]): F[Validated[A, B]] =
F.map(value)(_.toValidated)

def toValidatedNel(implicit F: Functor[F]): F[ValidatedNel[A,B]] =
Copy link
Contributor

Choose a reason for hiding this comment

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

Scalastyle wants there to be a space after the comma: ValidatedNel[A, B]

@ceedubs
Copy link
Contributor

ceedubs commented Jul 13, 2016

I like it. Thanks @markus1189.

👍 after the minor formatting issue is addressed and Scalastyle is happy.

@codecov-io
Copy link

Current coverage is 88.81%

Merging #1188 into master will increase coverage by <.01%

@@             master      #1188   diff @@
==========================================
  Files           233        233          
  Lines          3084       3085     +1   
  Methods        3033       3032     -1   
  Messages          0          0          
  Branches         48         50     +2   
==========================================
+ Hits           2739       2740     +1   
  Misses          345        345          
  Partials          0          0          

Sunburst

Powered by Codecov. Last updated by fe361a3...32438a9

@peterneyens
Copy link
Collaborator

👍

@peterneyens peterneyens merged commit acd5892 into typelevel:master Jul 13, 2016
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.

4 participants