[Haskell-beginners] reading lines with history from bash terminal in OS X