Skip to content

Commit

Permalink
Reimplement cabal check
Browse files Browse the repository at this point in the history
  • Loading branch information
ffaf1 committed Jun 13, 2023
1 parent 6e1a5b9 commit 49b599a
Show file tree
Hide file tree
Showing 11 changed files with 2,880 additions and 2,799 deletions.
2 changes: 1 addition & 1 deletion Cabal-tests/tests/CheckTests.hs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ checkTest fp = cabalGoldenTest fp correct $ do
-- Note: parser warnings are reported by `cabal check`, but not by
-- D.PD.Check functionality.
unlines (map (showPWarning fp) ws) ++
unlines (map show (checkPackage gpd Nothing))
unlines (map show (checkPackage gpd))
Left (_, errs) -> unlines $ map (("ERROR: " ++) . showPError fp) $ NE.toList errs
where
input = "tests" </> "ParserTests" </> "regressions" </> fp
Expand Down
2 changes: 1 addition & 1 deletion Cabal-tests/tests/HackageTests.hs
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ parseCheckTest fpath bs = do
Parsec.parseGenericPackageDescription bs
case parsec of
Right gpd -> do
let checks = checkPackage gpd Nothing
let checks = checkPackage gpd
let w [] = 0
w _ = 1

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
These packages miss upper bounds:
- somelib
- alphalib
- betalib
- deltalib
- somelib
Please add them, using `cabal gen-bounds` for suggestions. For more information see: https://pvp.haskell.org/
1 change: 1 addition & 0 deletions Cabal/Cabal.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ library
Distribution.Compat.Time
Distribution.Make
Distribution.PackageDescription.Check
Distribution.PackageDescription.Check.Prim
Distribution.ReadE
Distribution.Simple
Distribution.Simple.Bench
Expand Down
Loading

0 comments on commit 49b599a

Please sign in to comment.