File tree Expand file tree Collapse file tree 3 files changed +10
-5
lines changed
plugins/hls-ormolu-plugin Expand file tree Collapse file tree 3 files changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -349,7 +349,7 @@ common fourmolu
349
349
cpp-options : -Dhls_fourmolu
350
350
351
351
common ormolu
352
- if flag(ormolu) && impl(ghc < 9.5 )
352
+ if flag(ormolu) && impl(ghc < 9.7 )
353
353
build-depends : hls-ormolu-plugin == 2.1.0.0
354
354
cpp-options : -Dhls_ormolu
355
355
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ source-repository head
23
23
location : https://github.com/haskell/haskell-language-server.git
24
24
25
25
library
26
- if impl(ghc >= 9.5 )
26
+ if impl(ghc >= 9.7 )
27
27
buildable : False
28
28
exposed-modules : Ide.Plugin.Ormolu
29
29
hs-source-dirs : src
@@ -36,13 +36,13 @@ library
36
36
, hls-plugin-api == 2.1.0.0
37
37
, lens
38
38
, lsp
39
- , ormolu ^>= 0.1.2 || ^>= 0.2 || ^>= 0.3 || ^>= 0.5
39
+ , ormolu ^>= 0.1.2 || ^>= 0.2 || ^>= 0.3 || ^>= 0.5 || ^ >= 0.6 || ^ >= 0.7
40
40
, text
41
41
42
42
default-language : Haskell2010
43
43
44
44
test-suite tests
45
- if impl(ghc >= 9.5 )
45
+ if impl(ghc >= 9.7 )
46
46
buildable : False
47
47
type : exitcode-stdio-1.0
48
48
default-language : Haskell2010
Original file line number Diff line number Diff line change @@ -56,9 +56,14 @@ provider ideState typ contents fp _ = withIndefiniteProgress title Cancellable $
56
56
CabalNotFound -> Nothing
57
57
CabalDidNotMention cabalInfo -> Just cabalInfo
58
58
CabalFound cabalInfo -> Just cabalInfo
59
+ #if MIN_VERSION_ormolu(0,7,0)
60
+ (fixityOverrides, moduleReexports) <- getDotOrmoluForSourceFile fp'
61
+ let conf' = refineConfig ModuleSource cabalInfo (Just fixityOverrides) (Just moduleReexports) conf
62
+ #else
59
63
fixityOverrides <- traverse getFixityOverridesForSourceFile cabalInfo
60
64
let conf' = refineConfig ModuleSource cabalInfo fixityOverrides conf
61
- cont' = cont
65
+ #endif
66
+ let cont' = cont
62
67
#else
63
68
let conf' = conf
64
69
cont' = T. unpack cont
You can’t perform that action at this time.
0 commit comments