caseapp.core.parser.NilParser.scala Maven / Gradle / Ivy
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
}