Unbreak elm-repl

retargeting part of this: https://github.com/elm-lang/Elm/pull/758