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

caseapp.core.parser.NilParser.scala Maven / Gradle / Ivy

There is a newer version: 2.0.0-M8
Show newest version
package caseapp.core.parser

import caseapp.core.Error
import shapeless.HNil

case object NilParser extends Parser[HNil] {

  type D = HNil

  def init: D =
    HNil

  def step(args: List[String], d: HNil): Right[(Error, List[String]), None.type] =
    Right(None)

  def get(d: D): Right[Error, HNil] =
    Right(HNil)

  def args: Nil.type =
    scala.Nil

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy