In python, there exists many IDEs which let you do this.
>>> if (a==5):
print "Yes"
else:
print "No"
But in haskell's GHCi:
Prelude> do
<interactive>:2:1: Empty 'do' block
It does not work. Is there any IDE which lets you do multiline commands in interactive mode.
Note: I am aware of the :{ and :} commands, but you then can not edit upper lines after entering them.