diff --git a/src/core/kaleidoscope.Kaleidoscope.scala b/src/core/kaleidoscope.Kaleidoscope.scala index 148dfef..6c58566 100644 --- a/src/core/kaleidoscope.Kaleidoscope.scala +++ b/src/core/kaleidoscope.Kaleidoscope.scala @@ -41,7 +41,7 @@ object Kaleidoscope: private def extractor(parts: List[String])(using Quotes): Expr[Any] = import quotes.reflect.* - val regex = failCompilation(Regex.parse(parts.map(Text(_)))) + val regex = abandonment(Regex.parse(parts.map(Text(_)))) val types: List[TypeRepr] = regex.captureGroups.map(_.quantifier).map: case Regex.Quantifier.Exactly(1) => TypeRepr.of[Text] diff --git a/src/core/kaleidoscope.Regex.scala b/src/core/kaleidoscope.Regex.scala index 7202926..e4c835f 100644 --- a/src/core/kaleidoscope.Regex.scala +++ b/src/core/kaleidoscope.Regex.scala @@ -76,7 +76,7 @@ object Regex: else (index2, s"($groupName($subpattern)${quantifier.serialize}${greed.serialize})".tt) def make(parts: Seq[String])(using Unsafe): Regex = - import errorHandlers.throwUnsafely + import strategies.throwUnsafely parse(parts.to(List).map(_.tt)) def apply(text: Text): Regex raises RegexError = parse(List(text)) diff --git a/src/test/tests.scala b/src/test/tests.scala index a1a5963..5b4a0bd 100644 --- a/src/test/tests.scala +++ b/src/test/tests.scala @@ -24,7 +24,7 @@ import rudiments.* import spectacular.* import vacuous.* -import errorHandlers.throwUnsafely +import strategies.throwUnsafely object Tests extends Suite(t"Kaleidoscope tests"): def run(): Unit =