fixes #250, haskell-interactive mode broken under certain conditions