File tree 1 file changed +3
-5
lines changed
frege-repl-core/src/main/frege/frege/repl
1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -301,12 +301,10 @@ slurp filePath = do
301
301
302
302
printMessages :: ReplIO a => a -> [Message ] -> IO ()
303
303
printMessages console [] = return ()
304
- printMessages console msgs = console. writeln $ Message. showMessages msgs
304
+ printMessages console msgs = mapM_ ( console. writeln . show ) msgs
305
305
306
306
printSymbolType :: ReplIO a => a -> Global -> Symbol -> IO ()
307
- printSymbolType console g sym = do
308
- console. write " :: "
309
- console. writeln (getSymbolType g sym)
307
+ printSymbolType console g sym = console. writeln (getSymbolType g sym)
310
308
311
309
readMultiline :: ReplIO a => a -> String -> IO String
312
310
readMultiline console multilinePrompt = intercalate newLine . reverse <$> f [] where
@@ -519,7 +517,7 @@ instance ReplIO ConsoleReader where
519
517
write console s = try (flip ConsoleReader. print (CharSequence. fromString s)) console
520
518
`catch` (\ (ioe :: IOException ) -> return () )
521
519
writeln console s = try (flip ConsoleReader. println s) console
522
- `catch` (\ (ioe :: IOException ) -> return () )
520
+ `catch` (\ (ioe :: IOException ) -> println ioe . getMessage )
523
521
interpretSym console g sym env =
524
522
do
525
523
valMaybe <- fieldValue (symbolClass sym g) (symbolVar sym g) env. state
You can’t perform that action at this time.
0 commit comments