Skip to content

Commit

Permalink
Apply quickfixes
Browse files Browse the repository at this point in the history
  • Loading branch information
danslapman committed Dec 1, 2023
1 parent 71ae448 commit 6c7791a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion modules/core/src/main/scala/glass/Update.scala
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ object PUpdate extends OpticCompanion[PUpdate] {
}

class Context extends PZipping.Context with PItems.Context {
def gfunctor = Applicative[Identity]
def gfunctor: Applicative[Identity] = Applicative[Identity]
override type G[+x] = x
}

Expand Down
4 changes: 2 additions & 2 deletions modules/core/src/main/scala/glass/Zipping.scala
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,12 @@ object PZipping extends OpticCompanion[PZipping] {
def profunctor: Profunctor[P] = new CoKleisliProfunctor[G]
}

override def toGeneric[S, T, A, B](o: PZipping[S, T, A, B]) = new Optic[Context, S, T, A, B] {
override def toGeneric[S, T, A, B](o: PZipping[S, T, A, B]): Optic[Context, S, T, A, B] = new Optic[Context, S, T, A, B] {
def apply(c: Context)(p: c.G[A] => B): c.G[S] => T =
o.combineWith(p)(_)(c.gfunctor)
}

override def fromGeneric[S, T, A, B](o: Optic[Context, S, T, A, B]) = new PZipping[S, T, A, B] {
override def fromGeneric[S, T, A, B](o: Optic[Context, S, T, A, B]): glass.PZipping[S, T, A, B] = new PZipping[S, T, A, B] {
def grate(sab: (S => A) => B): T = o(new Context {
type G[+a] = S => a
def gfunctor: Functor[G] = implicitly
Expand Down
2 changes: 1 addition & 1 deletion modules/core/src/main/scala/glass/optics.scala
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ trait OpticCompanion[O[-s, +t, +a, -b] >: PSame[s, t, a, b] @uv212] {
def delayed[S, T, A, B](o: () => O[S, T, A, B]): O[S, T, A, B]

final implicit val category: Category[Mono] = new Category[Mono] {
def id[A] = PSame.id[A, A]
def id[A] : PSame[A, A, A, A] = PSame.id[A, A]
def compose[A, B, C](f: Mono[B, C], g: Mono[A, B]): Mono[A, C] = self.compose(f, g)
}

Expand Down

0 comments on commit 6c7791a

Please sign in to comment.