Guest User

Untitled

a guest
Dec 16th, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. val bookings: F[BookingKey => EitherK[Booking, BookingCommandRejection, F]] =
  2. genericAkkaRuntime.runBehavior(/*...*/)
  3.  
  4. // Type alias for simplicity.
  5. // Equivalent to:
  6. // BookingKey => F[Booking[λ[α => F[Either[BookingCommandRejection, α]]]]]
  7. type Bookings[F[_]] = Entities.Rejectable[BookingKey, Booking, F, BookingCommandRejection]
  8.  
  9. val adaptedBookings: F[Bookings[F]] =
  10. bookings.map(Eventsourced.Entities.fromEitherK(_))
Add Comment
Please, Sign In to add comment