Skip to content

Commit

Permalink
Merge pull request #1484 from durban/topic/symbolShow
Browse files Browse the repository at this point in the history
Show instance for scala.Symbol
  • Loading branch information
kailuowang committed Dec 5, 2016
2 parents 25d11c4 + 2c20154 commit 8fceb7f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions core/src/main/scala/cats/instances/all.scala
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,4 @@ trait AllInstances
with TryInstances
with TupleInstances
with UUIDInstances
with SymbolInstances
9 changes: 9 additions & 0 deletions core/src/main/scala/cats/instances/symbol.scala
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package cats
package instances

package object symbol extends SymbolInstances

trait SymbolInstances extends cats.kernel.instances.SymbolInstances {
implicit val catsStdShowForSymbol: Show[Symbol] =
Show.fromToString[Symbol]
}

0 comments on commit 8fceb7f

Please sign in to comment.