@@ -30,10 +30,11 @@ data Options = Options
3030 , _optLtsHaskellRepo :: FilePath
3131 , _optOutStackagePackages :: FilePath
3232 , _optOutStackageConfig :: FilePath
33− , _optOutPackagesClosure :: Bool
3433 , _optOutDerivation :: FilePath
3534 , _optDoCheckPackages :: Bool
3635 , _optDoHaddockPackages :: Bool
36+ , _optWithStackage :: Bool
37+ , _optWithStackageClosure :: Bool
3738 , _optHackageDb :: Maybe HackageDb
3839 , _optNixpkgsRepository :: FilePath
3940 , _optCompilerId :: CompilerId
@@ -59,10 +60,11 @@ options = Options
5960 <*> ltsHaskellRepo
6061 <*> outStackagePackages
6162 <*> outStackageConfig
62− <*> outPackagesClosure
6363 <*> outDerivation
6464 <*> doCheckPackages
6565 <*> doHaddockPackages
66+ <*> withStackage
67+ <*> withStackageClosure
6668 <*> optional hackageDb
6769 <*> nixpkgsRepository
6870 <*> compilerId
@@ -113,11 +115,6 @@ outStackageConfig = option str
113115 <> value "configuration-packages.nix"
114116 <> showDefaultWith id)
115117
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" )
120−
121118outDerivation :: Parser FilePath
122119outDerivation = option str
123120 ( long "out-derivation"
@@ -136,6 +133,16 @@ doHaddockPackages = flag True False
136133 ( long "no-haddock"
137134 <> help "disable haddock for project packages")
138135
136+withStackage :: Parser Bool
137+withStackage = switch
138+ ( long "--with-stackage"
139+ <> help "generate full Stackage" )
140+
141+withStackageClosure :: Parser Bool
142+withStackageClosure = switch
143+ ( long "--with-stackage-closure"
144+ <> help "generate Stackage subset containing only build dependencies" )
145+
139146resolver :: Parser StackResolver
140147resolver = StackResolver <$> option text
141148 ( long "resolver"