All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.hammerlab.show.syntax.scala Maven / Gradle / Ivy

There is a newer version: 5.2.1
Show newest version
package org.hammerlab.show

import cats.Show
import cats.Show.ToShowOps
import cats.syntax.ShowSyntax

/**
 * Mix several bits of cats' [[Show]] syntax in one place.
 *
 * In particular, [[ShowSyntax]] is missing from [[cats.syntax.show]]
 */
trait syntax
  extends ShowSyntax
    with ToShowOps {

  implicit val showInt = cats.instances.int.catsStdShowForInt
  implicit val showLong = cats.instances.long.catsStdShowForLong
  implicit val showString = cats.instances.string.catsStdShowForString

  def show[A](f: A => String): Show[A] = cats.Show.show(f)
  type Show[A] = cats.Show[A]
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy