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 Show for Option and OptionT #600

Merged
merged 1 commit into from Nov 8, 2015
Merged

Conversation

ceedubs
Copy link
Contributor

@ceedubs ceedubs commented Nov 6, 2015

The OptionT Show instance just uses the Show instance for the wrapped
F[Option[A]] as opposed to wrapping it in OptionT(...). This is to
match the current behavior of XorT, but I'm wondering if that's
something we would want to change on both. It seems to me like the Show
output should reflect the fact that the value is wrapped in a monad
transformer, but I don't have particularly strong feelings about this.

The OptionT Show instance just uses the Show instance for the wrapped
`F[Option[A]]` as opposed to wrapping it in `OptionT(...)`. This is to
match the current behavior of `XorT`, but I'm wondering if that's
something we would want to change on both. It seems to me like the Show
output should reflect the fact that the value is wrapped in a monad
transformer, but I don't have particularly strong feelings about this.
@codecov-io
Copy link

Current coverage is 76.69%

Merging #600 into master will increase coverage by +0.40% as of cec2dd0

@@            master    #600   diff @@
======================================
  Files          160     160       
  Stmts         2194    2201     +7
  Branches        68      68       
  Methods          0       0       
======================================
+ Hit           1674    1688    +14
  Partial          0       0       
+ Missed         520     513     -7

Review entire Coverage Diff as of cec2dd0

Powered by Codecov. Updated on successful CI builds.

@mpilquist
Copy link
Member

👍

1 similar comment
@non
Copy link
Contributor

non commented Nov 8, 2015

👍

non added a commit that referenced this pull request Nov 8, 2015
Add Show for Option and OptionT
@non non merged commit f20f021 into typelevel:master Nov 8, 2015
@non non removed the in progress label Nov 8, 2015
@ceedubs ceedubs deleted the option-show branch November 15, 2015 23:39
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.

None yet

4 participants