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

unused_code.FindResult.scala Maven / Gradle / Ivy

There is a newer version: 0.4.1
Show newest version
package unused_code

import metaconfig.generic.Surface
import metaconfig.ConfDecoder
import metaconfig.ConfEncoder

sealed abstract class FindResult extends Product with Serializable

object FindResult {
  final case class Define(value: String) extends FindResult
  final case class Use(value: String, path: String) extends FindResult
  object Use {
    private[this] val empty = Use("invalid_value", "invalid_path")
    implicit val surface: Surface[Use] = metaconfig.generic.deriveSurface[Use]
    implicit val encoder: ConfEncoder[Use] = metaconfig.generic.deriveEncoder[Use]
    implicit val decoder: ConfDecoder[Use] = metaconfig.generic.deriveDecoder[Use](empty)
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy