[Haskell-beginners] Network client - reading and writing to a socket