From 848b05dcc635a476d8be02c780601129de83ed49 Mon Sep 17 00:00:00 2001 From: "P. Oscar Boykin" Date: Sun, 6 Dec 2020 12:01:48 -1000 Subject: [PATCH] Fix return type on repAs1 (#99) * Fix return type on repAs1 * try to bump to 0.2 for mima --- build.sbt | 2 +- core/shared/src/main/scala/cats/parse/Parser.scala | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/build.sbt b/build.sbt index 731940c5..0eaaa7a7 100644 --- a/build.sbt +++ b/build.sbt @@ -6,7 +6,7 @@ addCommandAlias("fmtCheck", "; scalafmtCheckAll; scalafmtSbtCheck") addCommandAlias("prePR", "; githubWorkflowGenerate ; +fmt; bench/compile; +test") -ThisBuild / baseVersion := "0.1" +ThisBuild / baseVersion := "0.2" ThisBuild / organization := "org.typelevel" ThisBuild / organizationName := "Typelevel" diff --git a/core/shared/src/main/scala/cats/parse/Parser.scala b/core/shared/src/main/scala/cats/parse/Parser.scala index e9ca160a..d1e5c759 100644 --- a/core/shared/src/main/scala/cats/parse/Parser.scala +++ b/core/shared/src/main/scala/cats/parse/Parser.scala @@ -659,10 +659,10 @@ object Parser extends ParserInstances { def repAs[B](implicit acc: Accumulator[A, B]): Parser[B] = Parser.repAs(self)(acc) - def repAs1[B](implicit acc: Accumulator1[A, B]): Parser[B] = + def repAs1[B](implicit acc: Accumulator1[A, B]): Parser1[B] = Parser.repAs1(self, min = 1)(acc) - def repAs1[B](min: Int)(implicit acc: Accumulator1[A, B]): Parser[B] = + def repAs1[B](min: Int)(implicit acc: Accumulator1[A, B]): Parser1[B] = Parser.repAs1(self, min = min)(acc) }