Skip to content

Add Show for Option and OptionT#600

Merged
non merged 1 commit into
typelevel:masterfrom
ceedubs:option-show
Nov 8, 2015
Merged

Add Show for Option and OptionT#600
non merged 1 commit into
typelevel:masterfrom
ceedubs:option-show

Conversation

@ceedubs
Copy link
Copy Markdown
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
Copy Markdown

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
Copy Markdown
Member

👍

1 similar comment
@non
Copy link
Copy Markdown
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.

4 participants