@@ -28,6 +28,7 @@ import qualified Text.PrettyPrint as PP
2828import HaskellCI.Config.ConstraintSet
2929import HaskellCI.Config.CopyFields
3030import HaskellCI.Config.Doctest
31+ import HaskellCI.Config.Docspec
3132import HaskellCI.Config.Folds
3233import HaskellCI.Config.HLint
3334import HaskellCI.Config.Installed
@@ -84,6 +85,7 @@ data Config = Config
8485 , cfgInsertVersion :: ! Bool
8586 , cfgErrorMissingMethods :: ! PackageScope
8687 , cfgDoctest :: ! DoctestConfig
88+ , cfgDocspec :: ! DocspecConfig
8789 , cfgHLint :: ! HLintConfig
8890 , cfgConstraintSets :: [ConstraintSet ]
8991 , cfgRawProject :: [C. PrettyField () ]
@@ -101,21 +103,9 @@ emptyConfig = Config
101103 , cfgUbuntu = Xenial
102104 , cfgTestedWith = TestedWithUniform
103105 , cfgCopyFields = CopyFieldsSome
104- , cfgDoctest = DoctestConfig
105- { cfgDoctestEnabled = noVersion
106- , cfgDoctestOptions = []
107- , cfgDoctestVersion = defaultDoctestVersion
108- , cfgDoctestFilterEnvPkgs = []
109- , cfgDoctestFilterSrcPkgs = []
110- }
111- , cfgHLint = HLintConfig
112- { cfgHLintEnabled = False
113- , cfgHLintJob = HLintJobLatest
114- , cfgHLintYaml = Nothing
115- , cfgHLintVersion = defaultHLintVersion
116- , cfgHLintOptions = []
117- , cfgHLintDownload = True
118- }
106+ , cfgDoctest = defaultDoctestConfig
107+ , cfgDocspec = defaultDocspecConfig
108+ , cfgHLint = defaultHLintConfig
119109 , cfgLocalGhcOptions = []
120110 , cfgConstraintSets = []
121111 , cfgSubmodules = False
@@ -160,7 +150,10 @@ emptyConfig = Config
160150-------------------------------------------------------------------------------
161151
162152configGrammar
163- :: (OptionsGrammar g , Applicative (g Config ), Applicative (g DoctestConfig ), Applicative (g HLintConfig ))
153+ :: ( OptionsGrammar g , Applicative (g Config )
154+ , Applicative (g DoctestConfig )
155+ , Applicative (g DocspecConfig )
156+ , Applicative (g HLintConfig ))
164157 => g Config Config
165158configGrammar = Config
166159 <$> C. optionalFieldDefAla " cabal-install-version" HeadVersion (field @ " cfgCabalInstallVersion" ) defaultCabalInstallVersion
@@ -242,6 +235,7 @@ configGrammar = Config
242235 <*> C. optionalFieldDef " error-missing-methods" (field @ " cfgErrorMissingMethods" ) PackageScopeLocal
243236 ^^^ metahelp " PKGSCOPE" " Insert -Werror=missing-methods for package scope (none, local, all)"
244237 <*> C. blurFieldGrammar (field @ " cfgDoctest" ) doctestConfigGrammar
238+ <*> C. blurFieldGrammar (field @ " cfgDocspec" ) docspecConfigGrammar
245239 <*> C. blurFieldGrammar (field @ " cfgHLint" ) hlintConfigGrammar
246240 <*> pure [] -- constraint sets
247241 <*> pure [] -- raw project fields
0 commit comments