Skip to content

Commit 55392d1

Browse files
committed
[ fix ] Return CompilationFailed for green CI
1 parent 3f15823 commit 55392d1

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

src/Idris/IDEMode/REPL.idr

+2
Original file line numberDiff line numberDiff line change
@@ -351,6 +351,8 @@ displayIDEResult outf i (REPL $ NoFileLoaded)
351351
= printIDEError outf i $ reflow "No file can be reloaded"
352352
displayIDEResult outf i (REPL $ CurrentDirectory dir)
353353
= printIDEResult outf i $ AString $ "Current working directory is \"\{dir}\""
354+
displayIDEResult outf i (REPL CompilationFailed)
355+
= printIDEError outf i $ reflow "Compilation failed"
354356
displayIDEResult outf i (REPL $ Compiled f)
355357
= printIDEResult outf i $ AString "File \{f} written"
356358
displayIDEResult outf i (REPL $ ProofFound x)

src/Idris/REPL.idr

+1
Original file line numberDiff line numberDiff line change
@@ -1260,6 +1260,7 @@ mutual
12601260
displayResult NoFileLoaded = printResult (reflow "No file can be reloaded")
12611261
displayResult (CurrentDirectory dir)
12621262
= printResult (reflow "Current working directory is" <++> dquotes (pretty0 dir))
1263+
displayResult CompilationFailed = printResult (reflow "Compilation failed")
12631264
displayResult (Compiled f) = printResult ("File" <++> pretty0 f <++> "written")
12641265
displayResult (ProofFound x) = printResult (prettyBy Syntax x)
12651266
displayResult (Missed cases) = printResult $ vsep (handleMissing <$> cases)

src/Idris/REPL/Common.idr

+1
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,7 @@ data REPLResult : Type where
227227
ErrorsBuildingFile : String -> List Error -> REPLResult
228228
NoFileLoaded : REPLResult
229229
CurrentDirectory : String -> REPLResult
230+
CompilationFailed: REPLResult
230231
Compiled : String -> REPLResult
231232
ProofFound : IPTerm -> REPLResult
232233
Missed : List MissedResult -> REPLResult

0 commit comments

Comments
 (0)