@@ -703,14 +703,14 @@ flag hlint
703703 manual : True
704704
705705common hlint
706- if flag(hlint) && (impl(ghc < 9.10 ) || flag(ignore-plugins-ghc-bounds))
706+ if flag(hlint) && (( impl(ghc < 9.10 ) || impl(ghc > 9.10 ) ) || flag(ignore-plugins-ghc-bounds))
707707 build-depends : haskell-language-server :hls-hlint-plugin
708708 cpp-options : -Dhls_hlint
709709
710710library hls-hlint-plugin
711711 import : defaults, pedantic, warnings
712712 -- https://github.com/ndmitchell/hlint/pull/1594
713- if !(flag(hlint)) || (impl(ghc > 9.10 ) && !flag(ignore-plugins-ghc-bounds))
713+ if !(flag(hlint)) || (( impl(ghc < 9.10 ) || impl(ghc > 9.10 ) ) && !flag(ignore-plugins-ghc-bounds))
714714 buildable : False
715715 exposed-modules : Ide.Plugin.Hlint
716716 hs-source-dirs : plugins/hls-hlint-plugin/src
@@ -722,7 +722,7 @@ library hls-hlint-plugin
722722 , filepath
723723 , ghcide == 2.10.0.0
724724 , hashable
725- , hlint >= 3.5 && < 3.9
725+ , hlint >= 3.5 && < 3.11
726726 , hls-plugin-api == 2.10.0.0
727727 , lens
728728 , mtl
@@ -753,7 +753,7 @@ library hls-hlint-plugin
753753
754754test-suite hls-hlint-plugin-tests
755755 import : defaults, pedantic, test-defaults, warnings
756- if ( !flag(hlint)) || (impl(ghc > 9.10 ) && !flag(ignore-plugins-ghc-bounds))
756+ if !flag(hlint) || (!( impl(ghc < 9.10 ) || impl(ghc > 9.10 ) ) && !flag(ignore-plugins-ghc-bounds))
757757 buildable : False
758758 type : exitcode-stdio-1.0
759759 hs-source-dirs : plugins/hls-hlint-plugin/test
0 commit comments