Allow \ line continuation at REPL on Windows

This commit is contained in:
Aaron Tomb 2021-09-22 15:17:25 -07:00
parent 6d2709748e
commit d6f3497392

View File

@ -99,7 +99,7 @@ getInputLines :: String -> InputT REPL NextLine
getInputLines = handleInterrupt (MTL.lift (handleCtrlC Interrupted)) . loop []
where
loop ls prompt =
do mb <- getInputLine prompt
do mb <- fmap (filter (/= '\r')) <$> getInputLine prompt
let newPropmpt = map (\_ -> ' ') prompt
case mb of
Nothing -> return NoMoreLines