Squashed 'hadrian/' content from commit 438dc57
[ghc.git] / src / Settings / Builders / GhcPkg.hs
1 module Settings.Builders.GhcPkg (ghcPkgBuilderArgs) where
2
3 import Settings.Builders.Common
4
5 ghcPkgBuilderArgs :: Args
6 ghcPkgBuilderArgs = mconcat
7 [ builder (GhcPkg Init) ? mconcat [ arg "init", arg =<< getOutput ]
8
9 , builder (GhcPkg Update) ? do
10 verbosity <- expr getVerbosity
11 context <- getContext
12 config <- expr $ pkgInplaceConfig context
13 mconcat [ arg "update"
14 , arg "--force"
15 , verbosity < Chatty ? arg "-v0"
16 , bootPackageDatabaseArgs
17 , arg config ] ]