val color: Parser[String] = literal("blue") | literal("green")
val select: Parser[String] = literal("fg") | literal("bg")
val setColor: Parser[(String, Char, String)] = select ~ ' ' ~ color
error: type mismatch;
found : sbt.internal.util.complete.Parser[((String, Char), String)]
required: sbt.internal.util.complete.Parser[(String, Char, String)]
val setColor: Parser[(String, Char, String)] = select ~ ' ' ~ color
Parser of type that described in the documentation.
steps
problem
expectation
Parser of type that described in the documentation.
notes
sbt 1.2.8, 1.6.2
scala 2.12.10