
enumeratum.Doobie.scala Maven / Gradle / Ivy
package enumeratum
import doobie.util._
import doobie.Meta
object Doobie {
/** Returns an Encoder for the given enum
*/
def meta[A <: EnumEntry](@deprecatedName(Symbol("enum")) e: Enum[A]): Meta[A] =
Meta[String].imap(e.withName)(_.entryName)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy