@@ -22,6 +22,7 @@ data Configuration = Configuration
2222 , optMaintainer :: [String]
2323 , optPlatform :: [String]
2424 , optHaddock :: Bool
25+ , optDoCheck :: Bool
2526 }
2627 deriving (Show)
2728
@@ -33,6 +34,7 @@ defaultConfiguration = Configuration
3334 , optMaintainer = []
3435 , optPlatform = []
3536 , optHaddock = True
37+ , optDoCheck = True
3638 }
3739
3840options :: [OptDescr (Configuration -> Configuration)]
@@ -42,6 +44,7 @@ options =
4244 , Option ['m'] ["maintainer"] (ReqArg (\x o -> o { optMaintainer = x : optMaintainer o }) "MAINTAINER") "maintainer of this package (may be specified multiple times)"
4345 , Option ['p'] ["platform"] (ReqArg (\x o -> o { optPlatform = x : optPlatform o }) "PLATFORM") "supported build platforms (may be specified multiple times)"
4446 , Option [] ["no-haddock"] (NoArg (\o -> o { optHaddock = False })) "don't run Haddock when building this package"
47+ , Option [] ["no-check"] (NoArg (\o -> o { optDoCheck = False })) "don't run regression test suites of this package"
4548 ]
4649
4750usage :: String