Skip to content

Commit

Permalink
Remove fatalWarnings for now
Browse files Browse the repository at this point in the history
  • Loading branch information
geirolz committed Sep 14, 2024
1 parent 203988c commit 3cda5c0
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 8 deletions.
3 changes: 0 additions & 3 deletions core/src/main/scala/com/geirolz/app/toolkit/AppCompiler.scala
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
package com.geirolz.app.toolkit

import cats.data.{EitherT, NonEmptyList}
import cats.effect.implicits.{genSpawnOps, monadCancelOps_}
import cats.effect.syntax.all.*
import cats.effect.{Async, Fiber, Ref, Resource}
import cats.{Parallel, Show}
import com.geirolz.app.toolkit.AppContext.NoDeps
import com.geirolz.app.toolkit.failure.FailureHandler.OnFailureBehaviour
import com.geirolz.app.toolkit.logger.LoggerAdapter
import com.geirolz.app.toolkit.novalues.NoDependencies

trait AppCompiler[F[+_]]:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ package com.geirolz.app.toolkit.failure

import cats.data.NonEmptyList
import cats.syntax.all.*
import cats.{~>, Applicative, Functor, Monad, Show}
import com.geirolz.app.toolkit.{\/, AppMessages}
import cats.{Applicative, Functor, Monad, ~>}
import com.geirolz.app.toolkit.failure.FailureHandler.OnFailureBehaviour
import com.geirolz.app.toolkit.logger.Logger
import com.geirolz.app.toolkit.{AppMessages, \/}

case class FailureHandler[F[_], FAILURE](
onFailureF: FAILURE => F[OnFailureBehaviour],
Expand Down Expand Up @@ -47,7 +47,7 @@ object FailureHandler extends FailureHandlerSyntax:
handleFailureWithF = (e: FAILURE) => Applicative[F].pure(Left(e))
)

sealed trait OnFailureBehaviour
sealed trait OnFailureBehaviour derives CanEqual
object OnFailureBehaviour:
case object CancelAll extends OnFailureBehaviour
case object DoNothing extends OnFailureBehaviour
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ object Logger:
export NoopLogger.apply as noop
export ConsoleLogger.apply as console

sealed trait Level:
sealed trait Level derives CanEqual:
def index: Int =
this match
case Level.Error => 5
Expand Down
2 changes: 1 addition & 1 deletion project/PrjCompilerOptions.scala
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ object PrjCompilerOptions {
ScalacOptions.other("-language:dynamics"),

// warns
ScalacOptions.fatalWarnings,
// ScalacOptions.fatalWarnings,
ScalacOptions.warnValueDiscard,
ScalacOptions.warnNonUnitStatement,
ScalacOptions.warnExtraImplicit,
Expand Down

0 comments on commit 3cda5c0

Please sign in to comment.