mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-11-13 05:48:39 +03:00
Merge pull request #12 from ska80/silence-package-clean
Silence 'idris2 --clean idris2.ipkg' errors
This commit is contained in:
commit
8c4727d308
@ -384,7 +384,7 @@ clean pkg
|
||||
let build = build_dir (dirs (options defs))
|
||||
let exec = exec_dir (dirs (options defs))
|
||||
runScript (preclean pkg)
|
||||
let pkgmods = maybe
|
||||
let pkgmods = maybe
|
||||
(map fst (modules pkg))
|
||||
(\m => fst m :: map fst (modules pkg))
|
||||
(mainmod pkg)
|
||||
@ -413,7 +413,7 @@ clean pkg
|
||||
where
|
||||
delete : String -> Core ()
|
||||
delete path = do Right () <- coreLift $ fileRemove path
|
||||
| Left err => throw (FileErr (name pkg) err)
|
||||
| Left err => pure ()
|
||||
coreLift $ putStrLn $ "Removed: " ++ path
|
||||
|
||||
deleteFolder : String -> List String -> Core ()
|
||||
|
Loading…
Reference in New Issue
Block a user