From b86c7e80ec15a0341c8d4d596886ca9b74223079 Mon Sep 17 00:00:00 2001 From: Kamil Adam Date: Tue, 7 May 2024 20:12:53 +0200 Subject: [PATCH] Remove new --- .../writeonly/catculator/core/reducer/FunctionReducer.scala | 2 +- .../pl/writeonly/catculator/core/reducer/SugarReducer.scala | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/catculator-core/src/main/scala/pl/writeonly/catculator/core/reducer/FunctionReducer.scala b/catculator-core/src/main/scala/pl/writeonly/catculator/core/reducer/FunctionReducer.scala index 087eb52..b5bf93e 100644 --- a/catculator-core/src/main/scala/pl/writeonly/catculator/core/reducer/FunctionReducer.scala +++ b/catculator-core/src/main/scala/pl/writeonly/catculator/core/reducer/FunctionReducer.scala @@ -7,7 +7,7 @@ import pl.writeonly.catculator.core.adt.calculus.* import scala.language.postfixOps object FunctionReducer { - val haskellFunctionReducer = new FunctionReducer(LambdaConfig.haskellConfig) + val haskellFunctionReducer: FunctionReducer = FunctionReducer(LambdaConfig.haskellConfig) } class FunctionReducer(config: LambdaConfig) { diff --git a/catculator-core/src/main/scala/pl/writeonly/catculator/core/reducer/SugarReducer.scala b/catculator-core/src/main/scala/pl/writeonly/catculator/core/reducer/SugarReducer.scala index 7f2bf9d..729123a 100644 --- a/catculator-core/src/main/scala/pl/writeonly/catculator/core/reducer/SugarReducer.scala +++ b/catculator-core/src/main/scala/pl/writeonly/catculator/core/reducer/SugarReducer.scala @@ -12,8 +12,8 @@ import spire.math.Natural.End import spire.math.* object SugarReducer { - val haskellSugarReducer = new SugarReducer(LambdaConfig.haskellConfig) - val lambdaSugarReducer = new SugarReducer(LambdaConfig.lambdaConfig) + val haskellSugarReducer: SugarReducer = SugarReducer(LambdaConfig.haskellConfig) + val lambdaSugarReducer: SugarReducer = SugarReducer(LambdaConfig.lambdaConfig) } class SugarReducer(config: LambdaConfig) {