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

scalaz.QueryParamTypeclass.mustache Maven / Gradle / Ivy

There is a newer version: 3.0.0-rc1
Show newest version
package {{apiPackage}}

trait QueryParam[A] {
  def toParamString(a: A): String
}

object QueryParam {
  implicit def strQueryParam: QueryParam[String] = new QueryParam[String] {
    def toParamString(s: String): String = s
  }

  implicit def listStrQueryParam: QueryParam[List[String]] = new QueryParam[List[String]] {
    def toParamString(s: List[String]): String = s.mkString(",")
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy