Skip to content

Commit

Permalink
Remove docProjectConfigPaths
Browse files Browse the repository at this point in the history
- docProjectConfigFiles is the better name when not reporting "imported by"
  • Loading branch information
philderbeast committed Nov 25, 2024
1 parent 9a99aa1 commit 8a549b7
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ module Distribution.Solver.Types.ProjectConfigPath

-- * Messages
, docProjectConfigPath
, docProjectConfigPaths
, docProjectConfigFiles
, cyclicalImportMsg
, docProjectConfigPathFailReason
Expand Down Expand Up @@ -128,13 +127,9 @@ docProjectConfigPath (ProjectConfigPath (p :| ps)) = vcat $
-- , ProjectConfigPath ("project-cabal/pkgs/integration-tests.config" :| ["project-cabal/pkgs.config","cabal.project"])
-- , ProjectConfigPath ("project-cabal/pkgs/tests.config" :| ["project-cabal/pkgs.config","cabal.project"])
-- ]
-- return . render $ docProjectConfigPaths ps
-- return . render $ docProjectConfigFiles ps
-- :}
-- "- cabal.project\n- project-cabal/constraints.config\n- project-cabal/ghc-latest.config\n- project-cabal/ghc-options.config\n- project-cabal/pkgs.config\n- project-cabal/pkgs/benchmarks.config\n- project-cabal/pkgs/buildinfo.config\n- project-cabal/pkgs/cabal.config\n- project-cabal/pkgs/install.config\n- project-cabal/pkgs/integration-tests.config\n- project-cabal/pkgs/tests.config"
docProjectConfigPaths :: [ProjectConfigPath] -> Doc
docProjectConfigPaths ps = vcat
[ text "-" <+> text p | ProjectConfigPath (p :| _) <- ps ]

docProjectConfigFiles :: [ProjectConfigPath] -> Doc
docProjectConfigFiles ps = vcat
[ text "-" <+> text p
Expand Down

0 comments on commit 8a549b7

Please sign in to comment.