@@ -30,10 +30,11 @@ data Options = Options
30 , _optLtsHaskellRepo :: FilePath
30 , _optLtsHaskellRepo :: FilePath
31 , _optOutStackagePackages :: FilePath
31 , _optOutStackagePackages :: FilePath
32 , _optOutStackageConfig :: FilePath
32 , _optOutStackageConfig :: FilePath
33− , _optOutPackagesClosure :: Bool
34 , _optOutDerivation :: FilePath
33 , _optOutDerivation :: FilePath
35 , _optDoCheckPackages :: Bool
34 , _optDoCheckPackages :: Bool
36 , _optDoHaddockPackages :: Bool
35 , _optDoHaddockPackages :: Bool
36+ , _optWithStackage :: Bool
37+ , _optWithStackageClosure :: Bool
37 , _optHackageDb :: Maybe HackageDb
38 , _optHackageDb :: Maybe HackageDb
38 , _optNixpkgsRepository :: FilePath
39 , _optNixpkgsRepository :: FilePath
39 , _optCompilerId :: CompilerId
40 , _optCompilerId :: CompilerId
@@ -59,10 +60,11 @@ options = Options
59 <*> ltsHaskellRepo
60 <*> ltsHaskellRepo
60 <*> outStackagePackages
61 <*> outStackagePackages
61 <*> outStackageConfig
62 <*> outStackageConfig
62− <*> outPackagesClosure
63 <*> outDerivation
63 <*> outDerivation
64 <*> doCheckPackages
64 <*> doCheckPackages
65 <*> doHaddockPackages
65 <*> doHaddockPackages
67+ <*> withStackageClosure
66 <*> optional hackageDb
68 <*> optional hackageDb
67 <*> nixpkgsRepository
69 <*> nixpkgsRepository
68 <*> compilerId
70 <*> compilerId
@@ -113,11 +115,6 @@ outStackageConfig = option str
113 <> value "configuration-packages.nix"
115 <> value "configuration-packages.nix"
114 <> showDefaultWith id)
116 <> showDefaultWith id)
116−outPackagesClosure :: Parser Bool
117−outPackagesClosure = flag True False
118− ( long "no-packages-closure"
119− <> help "produce full set of stackage packages, not just dependencies" )
121outDerivation :: Parser FilePath
118outDerivation :: Parser FilePath
122outDerivation = option str
119outDerivation = option str
123 ( long "out-derivation"
120 ( long "out-derivation"
@@ -136,6 +133,16 @@ doHaddockPackages = flag True False
136 ( long "no-haddock"
133 ( long "no-haddock"
137 <> help "disable haddock for project packages")
134 <> help "disable haddock for project packages")
136+withStackage :: Parser Bool
137+withStackage = switch
138+ ( long "--with-stackage"
139+ <> help "generate full Stackage" )
141+withStackageClosure :: Parser Bool
142+withStackageClosure = switch
143+ ( long "--with-stackage-closure"
144+ <> help "generate Stackage subset containing only build dependencies" )
139resolver :: Parser StackResolver
146resolver :: Parser StackResolver
140resolver = StackResolver <$> option text
147resolver = StackResolver <$> option text
141 ( long "resolver"
148 ( long "resolver"