Skip to content

Commit

Permalink
Cleanup Kleisli and OptionT
Browse files Browse the repository at this point in the history
  • Loading branch information
mpilquist committed Oct 16, 2023
1 parent f1112b3 commit 10efed6
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions core/shared/src/main/scala/leopards/Kleisli.scala
Expand Up @@ -18,7 +18,6 @@ package leopards

opaque type Kleisli[F[_], A, B] = A => F[B]


object Kleisli:
def apply[F[_], A, B](f: A => F[B]): Kleisli[F, A, B] = f

Expand All @@ -29,4 +28,3 @@ object Kleisli:
extension [B](k: Kleisli[F, A, B])
def flatMap[C](f: B => Kleisli[F, A, C]) =
a => k(a).flatMap(b => f(b)(a))

0 comments on commit 10efed6

Please sign in to comment.