Skip to content

Commit

Permalink
refactor: Align Giter8 generated code aligned with modules
Browse files Browse the repository at this point in the history
  • Loading branch information
rlemaitre committed Nov 29, 2024
1 parent 278aca8 commit 79d0bef
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ import io.github.iltotore.iron.circe.given
import io.github.iltotore.iron.constraint.all.*
import org.typelevel.otel4s.trace.Tracer
import pillars.Config.Secret
import pillars.Loader
import pillars.Module
import pillars.ModuleDef
import pillars.Modules
import pillars.Pillars
import pillars.codec.given
Expand All @@ -29,7 +29,7 @@ import scala.language.postfixOps
trait $Prefix$Client[F[_]]

extension [F[_]](p: Pillars[F])
def $lowerCaseModuleName$ : $Prefix$[F] = p.module[$Prefix$[F]]($Prefix$.Key)
def $lowerCaseModuleName$[F[_]](using p: Pillars[F]): $Prefix$[F] = p.module[$Prefix$[F]]($Prefix$.Key)

final case class $Prefix$[F[_]: Async](client: $Prefix$Client[F]) extends Module[F]:
export client.*
Expand All @@ -54,7 +54,7 @@ object $Prefix$ :

end $Prefix$

class $Prefix$Loader extends Loader:
object $Prefix$Module extends ModuleDef:
override type M[F[_]] = $Prefix$[F]
override val key: Module.Key = $Prefix$.Key

Expand Down

0 comments on commit 79d0bef

Please sign in to comment.