I am reading that Haskell's do notation is quite harmful. Since I am still learning Haskell, I would like to not make bad habits. I am learning a library called Reflex and is an example:
import Reflex.Dom
main = mainWidget $ el "div" $ do
t <- textInput def
dynText $ _textInput_value t
I am reading that do notation has to do with the presence of monads such as IO
and has to do with <-
and $
operators.
How could I write these few lines without do
?
If you support do
... could you explain it's use in Haskell and this example?