Skip to content

Commit

Permalink
Fix compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
geirolz committed May 23, 2024
1 parent 5ec1802 commit 7a8e97a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@ lazy val baseSettings: Seq[Def.Setting[_]] = Seq(
def scalacSettings(scalaVersion: String): Seq[String] =
Seq(
"-source:future",
"-deprecation",
"-explain",
"-encoding",
"utf-8", // Specify character encoding used by source files.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ private[secret] transparent trait SecretApi[T](protected val vault: Vault[T]) ex
case Right(u) => u
case Left(e) => Secret.destroyed[U](e.destructionLocation)

private[secret] transparent trait SecretCompanionApi[SecretTpe[_] <: SecretApi[_]]
private[secret] transparent trait SecretCompanionApi[SecretTpe[X] <: SecretApi[X]]
extends SecretApiSyntax[SecretTpe],
SecretApiInstances[SecretTpe]:

Expand Down Expand Up @@ -148,7 +148,7 @@ private[secret] transparent trait SecretCompanionApi[SecretTpe[_] <: SecretApi[_
apply(value, collectDestructionLocation = false)

/** Syntax for the SecretPlatform */
private[secret] transparent sealed trait SecretApiSyntax[SecretTpe[_] <: SecretApi[_]]:
private[secret] transparent sealed trait SecretApiSyntax[SecretTpe[X] <: SecretApi[X]]:
this: SecretCompanionApi[SecretTpe] =>

extension [T: SecretStrategy: Monoid](optSecret: Option[SecretTpe[T]])(using Hasher)
Expand All @@ -160,7 +160,7 @@ private[secret] transparent sealed trait SecretApiSyntax[SecretTpe[_] <: SecretA
eSecret.toOption.getOrEmptySecret

/** Instances for the SecretPlatform */
private[secret] transparent sealed trait SecretApiInstances[SecretTpe[_] <: SecretApi[_]]:
private[secret] transparent sealed trait SecretApiInstances[SecretTpe[X] <: SecretApi[X]]:

given [T]: Hashing[SecretTpe[T]] =
Hashing.fromFunction(_.hashCode())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import scala.reflect.ClassTag
* @param algebra
* the algebra used to build the [[SecretStrategy]].
*/
class SecretStrategyFactory private[secret] (algebra: SecretStrategyAlgebra):
open class SecretStrategyFactory private[secret] (algebra: SecretStrategyAlgebra):

def apply[U](f: SecretStrategyFactory ?=> U): U =
f(using this)
Expand Down

0 comments on commit 7a8e97a

Please sign in to comment.