Redo Settings as AppState

This commit is contained in:
2020-10-24 01:06:53 +02:00
parent 0d41d180d6
commit e250d6013f
10 changed files with 199 additions and 189 deletions

View File

@@ -193,16 +193,17 @@ data URLSource = GHCupURL
deriving (GHC.Generic, Show)
data AppState = AppState
{ settings :: Settings
, dirs :: Dirs
} deriving (Show)
data Settings = Settings
{ -- set by user
cache :: Bool
{ cache :: Bool
, noVerify :: Bool
, keepDirs :: KeepDirs
, downloader :: Downloader
, verbose :: Bool
-- set on app start
, dirs :: Dirs
}
deriving Show