daily pastebin goal
57%
SHARE
TWEET

Untitled

a guest Dec 16th, 2018 55 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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(_))
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top