Skip to content

Instantly share code, notes, and snippets.

@debasishg
Created August 12, 2018 11:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save debasishg/3ca979824e210901f228dcb243490d5e to your computer and use it in GitHub Desktop.
Save debasishg/3ca979824e210901f228dcb243490d5e to your computer and use it in GitHub Desktop.
algebra of effects for a domain service
type Valid[M[_], A] = EitherT[M, AccountServiceException, A]
type AccountOperation[M[_], A] = Kleisli[Valid[M, ?], AccountRepository[M], A]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment