"I don´t like to read the order of functions from right to left in haskell. To fix this, I added a little useful operator."
"still don`t know anything about monads, types and classes"
I don't think that trying to "fix" something in the language without understanding its basic concepts is a good idea.
First of all, there are popular libraries and functions in Haskell providing what you want, e.g. lens's &
operator does exactly what your >>>
does. Secondly, the name >>>
is already occupied by a Category's (of the base library) implementation, so it's not a good idea to reimplement it. Basically it is just a reverse of a composition operator .
, but I suspect you're not well acquainted with function composition either. Thirdly, the bind (>>=
) operator is too far in purposes from what you expect, you need to study monads to understand it.