Separate running a line in haskell-interactive-mode into another function

No actual change in functionality here, this is in anticipation of
further changes.
Fix dynamic-binding reference