I'm learning about monad in Haskell.
I read here an excelent explaination about Monads, and I think to have understand (not all, but ehy I just started) about >>=
bind operator and Monad.
On my teacher's slides I found this:
class Monad m where
(>>=) :: m a -> (a -> m b) -> m b -- "bind"
(>>) :: m a -> m b -> m b -- "then"
return :: a -> m a
What is >>
and in what it differs from >>=
?