Split Targets.hs and Settings.hs into multiple logically separate files.
[hadrian.git] / src / Settings.hs
1 module Settings (
2 settings
3 ) where
4
5 import Base hiding (arg, args)
6 import Oracles.Builder
7 import Settings.GhcPkg
8 import Settings.GhcCabal
9 import UserSettings
10 import Expression hiding (when, liftIO)
11
12 settings :: Settings
13 settings = defaultSettings <> userSettings
14
15 defaultSettings :: Settings
16 defaultSettings = do
17 stage <- asks getStage
18 mconcat [ builder GhcCabal ? cabalSettings
19 , builder (GhcPkg stage) ? ghcPkgSettings ]