app.tulz.tuplez.parse.ParserOps.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tuplez-parse_2.12 Show documentation
Show all versions of tuplez-parse_2.12 Show documentation
Tuple composition utilities for cats-parse
The newest version!
package app.tulz.tuplez.parse
import cats.parse._
import app.tulz.tuplez.Composition
class ParserOps[A](underlying: Parser[A]) {
def ~~[B](that: Parser0[B])(implicit composition: Composition[A, B]): Parser[composition.Composed] =
Parser.product10(underlying, that).map { case (a, b) => composition.compose(a, b) }
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy