Skip to content

Commit

Permalink
Reformat with scalafmt 3.8.5
Browse files Browse the repository at this point in the history
Executed command: scalafmt --non-interactive
  • Loading branch information
scala-steward committed Jan 18, 2025
1 parent 7bdd6c4 commit 5d4987d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
5 changes: 2 additions & 3 deletions core/src/main/scala/endless/core/interpret/EntityT.scala
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,8 @@ object EntityT extends EntityRunFunctions {
def writer[F[_]: Applicative, S, E](newEvents: NonEmptyChain[E]): EntityT[F, S, E, Unit] =
new EntityT((_, existing) => write(newEvents)(existing))

def purr[F[_]: Applicative, S, E, A](a: A): EntityT[F, S, E, A] = new EntityT((_, events) =>
pure(a)(events)
)
def purr[F[_]: Applicative, S, E, A](a: A): EntityT[F, S, E, A] =
new EntityT((_, events) => pure(a)(events))

def liftF[F[_]: Functor, S, E, A](fa: F[A]): EntityT[F, S, E, A] =
new EntityT((_, events) => fa.map(a => (events, a).asRight))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,14 @@ import endless.core.protocol.{CommandProtocol, CommandSender, IncomingCommand}
import scalapb.{GeneratedMessage, GeneratedMessageCompanion}

trait ProtobufCommandProtocol[ID, Alg[_[_]]] extends CommandProtocol[ID, Alg] {
protected def sendCommand[F[
_
], C <: GeneratedMessage: GeneratedMessageCompanion, R <: GeneratedMessage: GeneratedMessageCompanion, A](
protected def sendCommand[
F[
_
],
C <: GeneratedMessage: GeneratedMessageCompanion,
R <: GeneratedMessage: GeneratedMessageCompanion,
A
](
id: ID,
command: C,
replyMapper: R => A
Expand Down

0 comments on commit 5d4987d

Please sign in to comment.