They are related but not the same. In fact, one of the uses of monads is to allow you to do impure operations(like writing to a file) in a pure functional language like Haskell(accomplished via the IO monad). A full discussion on monads is outside the scope of this series since it requires knowledge of category theory but I will try to show how we can use some monads in Android code later.

Head of UX Engineering at GOJEK

Head of UX Engineering at GOJEK