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

lucuma.core.syntax.Enumerated.scala Maven / Gradle / Ivy

There is a newer version: 0.108.0
Show newest version
// Copyright (c) 2016-2023 Association of Universities for Research in Astronomy, Inc. (AURA)
// For license information see LICENSE or https://opensource.org/licenses/BSD-3-Clause

package lucuma.core.syntax

import lucuma.core.util.Enumerated

final class EnumeratedOps[A: Enumerated](a: A) {

  def tag: String =
    Enumerated[A].tag(a)

}

trait ToEnumeratedOps {

  implicit def toEnumeratedOps[A: Enumerated](a: A): EnumeratedOps[A] =
    new EnumeratedOps[A](a)

}

object enumerated extends ToEnumeratedOps




© 2015 - 2024 Weber Informatics LLC | Privacy Policy