[Haskell-beginners] Reversing the lines read from stdin