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

enumeratum.values.Doobie.scala Maven / Gradle / Ivy

The newest version!
package enumeratum.values

import doobie.util._
import doobie.Meta

object Doobie {

  def meta[ValueType, EntryType <: ValueEnumEntry[ValueType]](
      @deprecatedName(Symbol("enum")) e: ValueEnum[ValueType, EntryType]
  )(implicit
      get: Get[ValueType],
      put: Put[ValueType]
  ): Meta[EntryType] =
    new Meta[ValueType](get, put).imap(e.withValue)(_.value)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy