mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-12-01 09:49:24 +03:00
Use double quotes to display the current working directory
This commit is contained in:
parent
b355b12cdb
commit
357e2a4cf6
@ -328,7 +328,7 @@ displayIDEResult outf i (REPL $ NoFileLoaded)
|
||||
= printIDEError outf i $ reflow "No file can be reloaded"
|
||||
displayIDEResult outf i (REPL $ CurrentDirectory dir)
|
||||
= printIDEResult outf i
|
||||
$ StringAtom $ "Current working directory is '" ++ dir ++ "'"
|
||||
$ StringAtom $ "Current working directory is \"" ++ dir ++ "\""
|
||||
displayIDEResult outf i (REPL CompilationFailed)
|
||||
= printIDEError outf i $ reflow "Compilation failed"
|
||||
displayIDEResult outf i (REPL $ Compiled f)
|
||||
|
@ -1044,7 +1044,7 @@ mutual
|
||||
displayResult (ErrorLoadingFile x err) = printResult (reflow "Error loading file" <++> pretty x <+> colon <++> pretty (show err))
|
||||
displayResult (ErrorsBuildingFile x errs) = printResult (reflow "Error(s) building file" <++> pretty x) -- messages already displayed while building
|
||||
displayResult NoFileLoaded = printError (reflow "No file can be reloaded")
|
||||
displayResult (CurrentDirectory dir) = printResult (reflow "Current working directory is" <++> squotes (pretty dir))
|
||||
displayResult (CurrentDirectory dir) = printResult (reflow "Current working directory is" <++> dquotes (pretty dir))
|
||||
displayResult CompilationFailed = printError (reflow "Compilation failed")
|
||||
displayResult (Compiled f) = printResult (pretty "File" <++> pretty f <++> pretty "written")
|
||||
displayResult (ProofFound x) = printResult (prettyTerm x)
|
||||
|
Loading…
Reference in New Issue
Block a user