@@ -23,6 +23,7 @@ import qualified Distribution.Types.Version as C
2323import qualified Distribution.Types.VersionRange as C
2424import qualified Text.PrettyPrint as PP
2525
26+ import HaskellCI.Config.Components
2627import HaskellCI.Config.ConstraintSet
2728import HaskellCI.Config.CopyFields
2829import HaskellCI.Config.Docspec
@@ -61,6 +62,7 @@ data Config = Config
6162 , cfgRunTests :: ! VersionRange
6263 , cfgBenchmarks :: ! VersionRange
6364 , cfgHaddock :: ! VersionRange
65+ , cfgHaddockComponents :: ! Components
6466 , cfgNoTestsNoBench :: ! VersionRange
6567 , cfgUnconstrainted :: ! VersionRange
6668 , cfgHeadHackage :: ! VersionRange
@@ -129,6 +131,7 @@ configGrammar
129131 , c (Identity CopyFields )
130132 , c (Identity Version )
131133 , c (Identity Natural )
134+ , c (Identity Components )
132135 , c Env , c Folds , c CopyFields , c HeadVersion
133136 , c (C. List C. FSep (Identity Installed ) Installed )
134137 , Applicative (g DoctestConfig )
@@ -170,6 +173,8 @@ configGrammar = Config
170173 ^^^ metahelp " RANGE" " Build benchmarks"
171174 <*> rangeField " haddock" (field @ " cfgHaddock" ) anyVersion
172175 ^^^ metahelp " RANGE" " Haddock step"
176+ <*> C. optionalFieldDef " haddock-components" (field @ " cfgHaddockComponents" ) ComponentsAll
177+ ^^^ metahelp " all|libs" " Haddock components"
173178 <*> rangeField " no-tests-no-benchmarks" (field @ " cfgNoTestsNoBench" ) anyVersion
174179 ^^^ metahelp " RANGE" " Build without tests and benchmarks"
175180 <*> rangeField " unconstrained" (field @ " cfgUnconstrainted" ) anyVersion
0 commit comments