aboutsummaryrefslogtreecommitdiff
path: root/examples/shared/src/main/scala/show.scala
diff options
context:
space:
mode:
Diffstat (limited to 'examples/shared/src/main/scala/show.scala')
-rw-r--r--examples/shared/src/main/scala/show.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/shared/src/main/scala/show.scala b/examples/shared/src/main/scala/show.scala
index 9afc4c9..ecf1dec 100644
--- a/examples/shared/src/main/scala/show.scala
+++ b/examples/shared/src/main/scala/show.scala
@@ -20,7 +20,7 @@ trait GenericShow[Out] {
/** creates a new [[Show]] instance by labelling and joining (with `mkString`) the result of
* showing each parameter, and prefixing it with the class name */
- def combine[T](ctx: CaseClass[Typeclass, T]): Show[Out, T] = (value: T) => {
+ def combine[T](ctx: CaseClass[Typeclass, T]): Show[Out, T] = { value =>
if (ctx.isValueClass) {
val param = ctx.parameters.head
param.typeclass.show(param.dereference(value))