Skip to content

Commit c422cf3

Browse files
authored
Add source-repository to all cabal files (#3219)
Add a source-repository stanza to any .cabal files in the project that are missing it. This metadata can be useful for package maintainers. See: https://cabal.readthedocs.io/en/stable/cabal-package.html#source-repositories Signed-off-by: hololeap <[email protected]> Signed-off-by: hololeap <[email protected]>
1 parent fd1a7d1 commit c422cf3

File tree

27 files changed

+108
-1
lines changed

27 files changed

+108
-1
lines changed

ghcide-bench/ghcide-bench.cabal

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ homepage: https://github.com/haskell/haskell-language-server/tree/mast
1414
bug-reports: https://github.com/haskell/haskell-language-server/issues
1515
tested-with: GHC == 8.6.5 || == 8.8.4 || == 8.10.7 || == 9.0.2 || == 9.2.3 || == 9.2.4
1616

17+
source-repository head
18+
type: git
19+
location: https://github.com/haskell/haskell-language-server.git
20+
1721
executable ghcide-bench
1822
default-language: Haskell2010
1923
build-depends:

hie-compat/hie-compat.cabal

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ category: Development
1717
homepage: https://github.com/haskell/haskell-language-server/tree/master/hie-compat#readme
1818
bug-reports: https://github.com/haskell/haskell-language-server/issues
1919

20+
source-repository head
21+
type: git
22+
location: https://github.com/haskell/haskell-language-server.git
23+
2024
flag ghc-lib
2125
description: build against ghc-lib instead of the ghc package
2226
default: False

plugins/hls-alternate-number-format-plugin/hls-alternate-number-format-plugin.cabal

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ extra-source-files:
1717
test/testdata/*.hs
1818
test/testdata/*.yaml
1919

20+
source-repository head
21+
type: git
22+
location: https://github.com/haskell/haskell-language-server.git
23+
2024
library
2125
buildable: True
2226
exposed-modules: Ide.Plugin.AlternateNumberFormat, Ide.Plugin.Conversion

plugins/hls-brittany-plugin/hls-brittany-plugin.cabal

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ extra-source-files:
1616
LICENSE
1717
test/testdata/**/*.hs
1818

19+
source-repository head
20+
type: git
21+
location: https://github.com/haskell/haskell-language-server.git
22+
1923
library
2024
if impl(ghc >= 9.2)
2125
buildable: False

plugins/hls-call-hierarchy-plugin/hls-call-hierarchy-plugin.cabal

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ extra-source-files:
1515
LICENSE
1616
test/testdata/*.hs
1717

18+
source-repository head
19+
type: git
20+
location: https://github.com/haskell/haskell-language-server.git
21+
1822
library
1923
buildable: True
2024
exposed-modules: Ide.Plugin.CallHierarchy

plugins/hls-change-type-signature-plugin/hls-change-type-signature-plugin.cabal

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ extra-source-files:
1818
test/testdata/*.txt
1919
test/testdata/*.yaml
2020

21+
source-repository head
22+
type: git
23+
location: https://github.com/haskell/haskell-language-server.git
24+
2125
library
2226
buildable: True
2327
exposed-modules: Ide.Plugin.ChangeTypeSignature

plugins/hls-class-plugin/hls-class-plugin.cabal

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ extra-source-files:
2020
LICENSE
2121
test/testdata/*.hs
2222

23+
source-repository head
24+
type: git
25+
location: https://github.com/haskell/haskell-language-server.git
26+
2327
library
2428
if impl(ghc >= 9.3)
2529
buildable: False

plugins/hls-code-range-plugin/hls-code-range-plugin.cabal

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ extra-source-files:
2020
test/testdata/selection-range/*.yaml
2121
test/testdata/selection-range/*.txt
2222

23+
source-repository head
24+
type: git
25+
location: https://github.com/haskell/haskell-language-server.git
26+
2327
library
2428
exposed-modules:
2529
Ide.Plugin.CodeRange

plugins/hls-explicit-fixity-plugin/hls-explicit-fixity-plugin.cabal

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ extra-source-files:
1515
LICENSE
1616
test/testdata/*.hs
1717

18+
source-repository head
19+
type: git
20+
location: https://github.com/haskell/haskell-language-server.git
21+
1822
library
1923
buildable: True
2024
exposed-modules: Ide.Plugin.ExplicitFixity

plugins/hls-explicit-imports-plugin/hls-explicit-imports-plugin.cabal

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ extra-source-files:
1515
test/testdata/*.hs
1616
test/testdata/*.yaml
1717

18+
source-repository head
19+
type: git
20+
location: https://github.com/haskell/haskell-language-server.git
21+
1822
library
1923
buildable: True
2024
exposed-modules: Ide.Plugin.ExplicitImports

plugins/hls-floskell-plugin/hls-floskell-plugin.cabal

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ extra-source-files:
1616
LICENSE
1717
test/testdata/**/*.hs
1818

19+
source-repository head
20+
type: git
21+
location: https://github.com/haskell/haskell-language-server.git
22+
1923
library
2024
if impl(ghc >= 9.3)
2125
buildable: False

plugins/hls-gadt-plugin/hls-gadt-plugin.cabal

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ extra-source-files:
1515
LICENSE
1616
test/testdata/*.hs
1717

18+
source-repository head
19+
type: git
20+
location: https://github.com/haskell/haskell-language-server.git
21+
1822
library
1923
if impl(ghc >= 9.3)
2024
buildable: False

plugins/hls-haddock-comments-plugin/hls-haddock-comments-plugin.cabal

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ extra-source-files:
1717
LICENSE
1818
test/testdata/*.hs
1919

20+
source-repository head
21+
type: git
22+
location: https://github.com/haskell/haskell-language-server.git
23+
2024
library
2125
if impl(ghc >= 9.2)
2226
buildable: False

plugins/hls-hlint-plugin/hls-hlint-plugin.cabal

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ extra-source-files:
2020
test/testdata/**/*.hs
2121
test/testdata/**/*.h
2222

23+
source-repository head
24+
type: git
25+
location: https://github.com/haskell/haskell-language-server.git
26+
2327
flag pedantic
2428
description: Enable -Werror
2529
default: False

plugins/hls-module-name-plugin/hls-module-name-plugin.cabal

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ extra-source-files:
1919
test/testdata/**/*.cabal
2020
test/testdata/**/*.project
2121

22+
source-repository head
23+
type: git
24+
location: https://github.com/haskell/haskell-language-server.git
25+
2226
library
2327
buildable: True
2428
exposed-modules: Ide.Plugin.ModuleName

plugins/hls-ormolu-plugin/hls-ormolu-plugin.cabal

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ extra-source-files:
1616
LICENSE
1717
test/testdata/**/*.hs
1818

19+
source-repository head
20+
type: git
21+
location: https://github.com/haskell/haskell-language-server.git
22+
1923
library
2024
if impl(ghc >= 9.3)
2125
buildable: False

plugins/hls-pragmas-plugin/hls-pragmas-plugin.cabal

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ extra-source-files:
1717
test/testdata/*.hs
1818
test/testdata/*.yaml
1919

20+
source-repository head
21+
type: git
22+
location: https://github.com/haskell/haskell-language-server.git
23+
2024
library
2125
buildable: True
2226
exposed-modules: Ide.Plugin.Pragmas

plugins/hls-qualify-imported-names-plugin/hls-qualify-imported-names-plugin.cabal

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ extra-source-files:
1717
test/data/*.hs
1818
test/data/*.yaml
1919

20+
source-repository head
21+
type: git
22+
location: https://github.com/haskell/haskell-language-server.git
23+
2024
library
2125
exposed-modules: Ide.Plugin.QualifyImportedNames
2226
hs-source-dirs: src

plugins/hls-refactor-plugin/hls-refactor-plugin.cabal

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ extra-source-files:
1717
test/data/**/*.hs
1818
test/data/**/*.yaml
1919

20+
source-repository head
21+
type: git
22+
location: https://github.com/haskell/haskell-language-server.git
23+
2024
library
2125
if impl(ghc >= 9.3)
2226
buildable: False

plugins/hls-refine-imports-plugin/hls-refine-imports-plugin.cabal

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ extra-source-files:
1515
test/testdata/*.hs
1616
test/testdata/*.yaml
1717

18+
source-repository head
19+
type: git
20+
location: https://github.com/haskell/haskell-language-server.git
21+
1822
library
1923
buildable: True
2024
exposed-modules: Ide.Plugin.RefineImports

plugins/hls-rename-plugin/hls-rename-plugin.cabal

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ extra-source-files:
1616
test/testdata/*.hs
1717
test/testdata/*.yaml
1818

19+
source-repository head
20+
type: git
21+
location: https://github.com/haskell/haskell-language-server.git
22+
1923
library
2024
if impl(ghc >= 9.3)
2125
buildable: False

plugins/hls-retrie-plugin/hls-retrie-plugin.cabal

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ category: Development
1212
build-type: Simple
1313
extra-source-files: LICENSE
1414

15+
source-repository head
16+
type: git
17+
location: https://github.com/haskell/haskell-language-server.git
18+
1519
library
1620
if impl(ghc >= 9.3)
1721
buildable: False

plugins/hls-splice-plugin/hls-splice-plugin.cabal

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ extra-source-files:
2222
test/testdata/*.hs
2323
test/testdata/*.yaml
2424

25+
source-repository head
26+
type: git
27+
location: https://github.com/haskell/haskell-language-server.git
28+
2529
library
2630
if impl(ghc >= 9.3)
2731
buildable: False

plugins/hls-stan-plugin/hls-stan-plugin.cabal

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,15 @@ extra-source-files:
1616
LICENSE
1717
test/testdata/*.hs
1818

19+
source-repository head
20+
type: git
21+
location: https://github.com/haskell/haskell-language-server.git
22+
1923
flag pedantic
2024
description: Enable -Werror
2125
default: False
2226
manual: True
2327

24-
2528
library
2629
if impl(ghc < 8.8) || impl(ghc >= 9.0)
2730
buildable: False

plugins/hls-stylish-haskell-plugin/hls-stylish-haskell-plugin.cabal

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ extra-source-files:
1515
LICENSE
1616
test/testdata/*.hs
1717

18+
source-repository head
19+
type: git
20+
location: https://github.com/haskell/haskell-language-server.git
21+
1822
library
1923
if impl(ghc >= 9.3)
2024
buildable: False

plugins/hls-tactics-plugin/hls-tactics-plugin.cabal

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ extra-source-files:
1919
test/golden/*.hs
2020
test/golden/*.yaml
2121

22+
source-repository head
23+
type: git
24+
location: https://github.com/haskell/haskell-language-server.git
25+
2226
flag pedantic
2327
description: Enable -Werror
2428
default: False

shake-bench/shake-bench.cabal

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ build-type: Simple
1111
-- description is a single line so that implicit-hie can parse it
1212
description: A library Shake rules to build and run benchmarks for multiple revisions of a project. An example of usage can be found in the ghcide benchmark suite
1313

14+
source-repository head
15+
type: git
16+
location: https://github.com/haskell/haskell-language-server.git
17+
1418
library
1519
exposed-modules: Development.Benchmark.Rules
1620
hs-source-dirs: src

0 commit comments

Comments
 (0)