Skip to content

Commit 046b66b

Browse files
committed
Remove unused dependencies in hls-refactor-plugin
1 parent b000b6b commit 046b66b

File tree

2 files changed

+6
-15
lines changed

2 files changed

+6
-15
lines changed

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

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,6 @@ library
6666
ViewPatterns
6767
hs-source-dirs: src
6868
build-depends:
69-
, aeson
7069
, base >=4.12 && <5
7170
, ghc
7271
, bytestring
@@ -116,25 +115,17 @@ test-suite tests
116115
, lens
117116
, lsp-types
118117
, text
119-
, aeson
120118
, hls-plugin-api
121119
, parser-combinators
122120
, data-default
123121
, extra
124-
, text-rope
125-
, containers
126-
-- ghc is included to enable the MIN_VERSION_ghc macro
127-
, ghc
128122
, ghcide
129123
, ghcide-test-utils
130124
, shake
131125
, hls-plugin-api
132126
, lsp-test
133-
, network-uri
134127
, directory
135-
, async
136128
, regex-tdfa
137-
, tasty-rerun
138129
, tasty-hunit
139130
, tasty-expected-failure
140131
, tasty

plugins/hls-refactor-plugin/test/Main.hs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2388,7 +2388,7 @@ addTypeAnnotationsToLiteralsTest = testGroup "add type annotations to literals t
23882388
, ""
23892389
, "f = 1"
23902390
])
2391-
#if MIN_VERSION_ghc(9,4,0)
2391+
#if MIN_VERSION_GLASGOW_HASKELL(9,4,0,0)
23922392
[ (DiagnosticSeverity_Warning, (3, 4), "Defaulting the type variable") ]
23932393
#else
23942394
[ (DiagnosticSeverity_Warning, (3, 4), "Defaulting the following constraint") ]
@@ -2409,7 +2409,7 @@ addTypeAnnotationsToLiteralsTest = testGroup "add type annotations to literals t
24092409
, " let x = 3"
24102410
, " in x"
24112411
])
2412-
#if MIN_VERSION_ghc(9,4,0)
2412+
#if MIN_VERSION_GLASGOW_HASKELL(9,4,0,0)
24132413
[ (DiagnosticSeverity_Warning, (4, 12), "Defaulting the type variable") ]
24142414
#else
24152415
[ (DiagnosticSeverity_Warning, (4, 12), "Defaulting the following constraint") ]
@@ -2431,7 +2431,7 @@ addTypeAnnotationsToLiteralsTest = testGroup "add type annotations to literals t
24312431
, " let x = let y = 5 in y"
24322432
, " in x"
24332433
])
2434-
#if MIN_VERSION_ghc(9,4,0)
2434+
#if MIN_VERSION_GLASGOW_HASKELL(9,4,0,0)
24352435
[ (DiagnosticSeverity_Warning, (4, 20), "Defaulting the type variable") ]
24362436
#else
24372437
[ (DiagnosticSeverity_Warning, (4, 20), "Defaulting the following constraint") ]
@@ -2454,7 +2454,7 @@ addTypeAnnotationsToLiteralsTest = testGroup "add type annotations to literals t
24542454
, ""
24552455
, "f = seq \"debug\" traceShow \"debug\""
24562456
])
2457-
#if MIN_VERSION_ghc(9,4,0)
2457+
#if MIN_VERSION_GLASGOW_HASKELL(9,4,0,0)
24582458
[ (DiagnosticSeverity_Warning, (6, 8), "Defaulting the type variable")
24592459
, (DiagnosticSeverity_Warning, (6, 16), "Defaulting the type variable")
24602460
]
@@ -2482,7 +2482,7 @@ addTypeAnnotationsToLiteralsTest = testGroup "add type annotations to literals t
24822482
, ""
24832483
, "f a = traceShow \"debug\" a"
24842484
])
2485-
#if MIN_VERSION_ghc(9,4,0)
2485+
#if MIN_VERSION_GLASGOW_HASKELL(9,4,0,0)
24862486
[ (DiagnosticSeverity_Warning, (6, 6), "Defaulting the type variable") ]
24872487
#else
24882488
[ (DiagnosticSeverity_Warning, (6, 6), "Defaulting the following constraint") ]
@@ -2506,7 +2506,7 @@ addTypeAnnotationsToLiteralsTest = testGroup "add type annotations to literals t
25062506
, ""
25072507
, "f = seq (\"debug\" :: [Char]) (seq (\"debug\" :: [Char]) (traceShow \"debug\"))"
25082508
])
2509-
#if MIN_VERSION_ghc(9,4,0)
2509+
#if MIN_VERSION_GLASGOW_HASKELL(9,4,0,0)
25102510
[ (DiagnosticSeverity_Warning, (6, 54), "Defaulting the type variable") ]
25112511
#else
25122512
[ (DiagnosticSeverity_Warning, (6, 54), "Defaulting the following constraint") ]

0 commit comments

Comments
 (0)