Implement --keep

This commit is contained in:
2020-04-22 18:12:40 +02:00
parent 818a5d2d85
commit bcaccaaf31
5 changed files with 92 additions and 46 deletions

View File

@@ -142,10 +142,17 @@ data URLSource = GHCupURL
data Settings = Settings
{ cache :: Bool
, noVerify :: Bool
, keepDirs :: KeepDirs
}
deriving Show
data KeepDirs = Always
| Errors
| Never
deriving (Eq, Show, Ord)
data DebugInfo = DebugInfo
{ diBaseDir :: Path Abs
, diBinDir :: Path Abs