Of course you can do statement-based code, like in any language that supports I/O(Haskell included).
That's a hard fact and it isn't what functional programming is about.