git.iko.soy/rowtype-yoga/purescript-native
on golang help sign in
Don't psci on Ctrl-C, just interrupt the current command
commit120a1e6f88f89448fda65b9e87277f2d0d33d913 authorKonstantin Zudov <konstantin@anche.no> dateFri 25 Sep 2015, 22:42 (11 years ago) parente3177bf
1 file changed+4−1
psci/PSCi.hs+4−1
psci/PSCi.hs+4−1
@@ -555,7 +555,10 @@ loop PSCiOptions{..} = do
555555 Left err -> outputStrLn err >> go
556556 Right Nothing -> go
557557 Right (Just QuitPSCi) -> outputStrLn quitMessage
558− Right (Just c') -> runPSCI (loadAllImportedModules >> handleCommand c') >> go
558+ Right (Just c') -> do
559+ handleInterrupt (outputStrLn "Interrupted.")
560+ (withInterrupt (runPSCI (loadAllImportedModules >> handleCommand c')))
561+ go
559562
560563multiLineMode :: Parser Bool
561564multiLineMode = switch $