[Haskell-beginners] command-line interaction with running process