Advertisement
Guest User

Untitled

a guest
Oct 7th, 2015
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. bindET :: (Monad m) => EitherT a m b -> (b -> EitherT a m c) -> EitherT a m c
  2. x `bindET` f = EitherT $ do
  3.                     unwrapped <- runEitherT x
  4.                     case unwrapped of
  5.                         Left err -> return (Left err)
  6.                         Right val -> runEitherT (f val)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement